]> git.ipfire.org Git - thirdparty/linux.git/commit
alloc_tag: check mem_profiling_support in alloc_tag_init
authorCasey Chen <cachen@purestorage.com>
Tue, 13 May 2025 18:26:02 +0000 (12:26 -0600)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2025 21:55:38 +0000 (14:55 -0700)
commit780138b123816d717dbc0771d4c87e9a8a01963d
tree37712ffeef97cf775f803da7da5c22365dd6ab68
parent6a4b3551ba1079e8831fb2821765a49b7fd33dbd
alloc_tag: check mem_profiling_support in alloc_tag_init

If mem_profiling_support is false, for example by
sysctl.vm.mem_profiling=never, alloc_tag_init should skip module tags
allocation, codetag type registration and procfs init.

Link: https://lkml.kernel.org/r/20250513182602.121843-1-cachen@purestorage.com
Signed-off-by: Casey Chen <cachen@purestorage.com>
Reviewed-by: Yuanyuan Zhong <yzhong@purestorage.com>
Acked-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/alloc_tag.c