]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: avoid extra mem_alloc_profiling_enabled() checks
authorSuren Baghdasaryan <surenb@google.com>
Sat, 1 Feb 2025 23:18:00 +0000 (15:18 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:36 +0000 (21:49 -0800)
commit35ca45e7ef4b788aaefdc5946b78523bffcd40ac
treea647f2b891de26148023fbc41c0a24bc44e35782
parent12272babcbb97fd49657e0b0b3d5762ef2b2096f
mm: avoid extra mem_alloc_profiling_enabled() checks

Refactor code to avoid extra mem_alloc_profiling_enabled() checks inside
pgalloc_tag_get() function which is often called after that check was
already done.

Link: https://lkml.kernel.org/r/20250201231803.2661189-1-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: David Wang <00107082@163.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Minchan Kim <minchan@google.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Sourav Panda <souravpanda@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Yu Zhao <yuzhao@google.com>
Cc: Zhenhua Huang <quic_zhenhuah@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pgalloc_tag.h
lib/alloc_tag.c
mm/page_alloc.c