+24
−3
+2
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
These get allocated and freed millions of times on this kernel tree. Use a dedicated kmem_cache pool and avoid costly dynamic memory allocations. Most allocations' size is: (sizeof(struct dma_buf) + sizeof(struct reservation_object)). Put those under kmem_cache pool and distinguish them with dmabuf->from_kmem flag. Signed-off-by:Park Ju Hyung <qkrwngud825@gmail.com> [@0ctobot: Adapted for 4.19] Signed-off-by:
Adam W. Willis <return.of.octobot@gmail.com> Signed-off-by:
LibXZR <xzr467706992@163.com>