]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
alloc_tag: move memory_allocation_profiling_sysctls into .rodata
authorJoel Granados <joel.granados@kernel.org>
Mon, 15 Dec 2025 15:47:37 +0000 (16:47 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:31 +0000 (19:24 -0800)
commit2a912d440c6024148a25850c7c4066b152ec8750
tree43af9b07e89203a908aeb996f9cfd261734029a6
parent817383b34db1e7d2a74d2d2b51cb0eed1586253b
alloc_tag: move memory_allocation_profiling_sysctls into .rodata

Remove the change in file mode permissions done before initializing the
sysctl.  It is not necessary as the writing of the kernel variable will be
blocked by the proc_mem_profiling_handler when writing is disallowed (also
controlled by mem_profiling_support).

Link: https://lkml.kernel.org/r/20251215-jag-alloc_tag_const-v1-1-35ea56a1ce13@kernel.org
Signed-off-by: Joel Granados <joel.granados@kernel.org>
Acked-by: Suren Baghdasaryan <surenb@google.com>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/alloc_tag.c