]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-buf: heaps: add parameter to account allocations using cgroup
authorEric Chanudet <echanude@redhat.com>
Fri, 16 Jan 2026 20:05:38 +0000 (15:05 -0500)
committerSumit Semwal <sumit.semwal@linaro.org>
Mon, 19 Jan 2026 13:38:47 +0000 (19:08 +0530)
commitbb33013bdd238129c8f8f29ed2e9bbdfa8caa643
treebd539c6cf968236d485d8dfed123190170fa4045
parent1c21f240fbc1e47b94e68abfa2da2c01ed29a74d
dma-buf: heaps: add parameter to account allocations using cgroup

Add a parameter to enable dma-buf heaps allocation accounting using
cgroup for heaps that implement it. It is disabled by default as doing
so incurs caveats based on how memcg currently accounts for shared
buffers.

Signed-off-by: Eric Chanudet <echanude@redhat.com>
Reviewed-by: T.J. Mercier <tjmercier@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patch.msgid.link/20260116-dmabuf-heap-system-memcg-v3-1-ecc6b62cc446@redhat.com
drivers/dma-buf/dma-heap.c
include/linux/dma-heap.h