]> www.infradead.org Git - users/willy/xarray.git/commit
mm: fix xyz_noprof functions calling profiled functions
authorSuren Baghdasaryan <surenb@google.com>
Fri, 31 May 2024 20:53:50 +0000 (13:53 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Jun 2024 02:19:26 +0000 (19:19 -0700)
commit9415983599413f847ec9f081e9f9e5ed6cdeb342
treeda34b5488c7324ed2dbad65ea990b94cedb76779
parent3f0c44c8c21cfa3bb6b756b939491b7a60932cd1
mm: fix xyz_noprof functions calling profiled functions

Grepping /proc/allocinfo for "noprof" reveals several xyz_noprof
functions, which means internally they are calling profiled functions.
This should never happen as such calls move allocation charge from a
higher level location where it should be accounted for into these lower
level helpers.  Fix this by replacing profiled function calls with noprof
ones.

Link: https://lkml.kernel.org/r/20240531205350.3973009-1-surenb@google.com
Fixes: b951aaff5035 ("mm: enable page allocation tagging")
Fixes: e26d8769da6d ("mempool: hook up to memory allocation profiling")
Fixes: 88ae5fb755b0 ("mm: vmalloc: enable memory allocation profiling")
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Reviewed-by: Kees Cook <kees@kernel.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/filemap.c
mm/mempool.c
mm/util.c