]> git.ipfire.org Git - thirdparty/linux.git/commit
dma-buf: system_heap: No separate allocation for attachment sg_tables
authorT.J. Mercier <tjmercier@google.com>
Thu, 17 Apr 2025 18:09:41 +0000 (18:09 +0000)
committerSumit Semwal <sumit.semwal@linaro.org>
Wed, 9 Jul 2025 10:21:39 +0000 (15:51 +0530)
commita951020202b88cee91feab00b36946c62e5a71d3
tree083d5443758e4a2243b032c2bf07af43ec19f91d
parentfe88fb3421161f3abd974ee2ecbe2d9195f98812
dma-buf: system_heap: No separate allocation for attachment sg_tables

struct dma_heap_attachment is a separate allocation from the struct
sg_table it contains, but there is no reason for this. Let's use the
slab allocator just once instead of twice for dma_heap_attachment.

Signed-off-by: T.J. Mercier <tjmercier@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://lore.kernel.org/r/20250417180943.1559755-1-tjmercier@google.com
drivers/dma-buf/heaps/system_heap.c