]> www.infradead.org Git - users/hch/block.git/commit
alloc_tag: outline and export free_reserved_page()
authorSuren Baghdasaryan <surenb@google.com>
Wed, 17 Jul 2024 21:28:44 +0000 (14:28 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Jul 2024 21:33:09 +0000 (14:33 -0700)
commitb3bebe44306e23827397d0d774d206e3fa374041
tree10ab5999a2641cd0fcf7bd835af3b8613de57d28
parentbf6acd5d16057d7accbbb1bf7dc6d8c56eeb4ecc
alloc_tag: outline and export free_reserved_page()

Outline and export free_reserved_page() because modules use it and it in
turn uses page_ext_{get|put} which should not be exported.  The same
result could be obtained by outlining {get|put}_page_tag_ref() but that
would have higher performance impact as these functions are used in more
performance critical paths.

Link: https://lkml.kernel.org/r/20240717212844.2749975-1-surenb@google.com
Fixes: dcfe378c81f7 ("lib: introduce support for page allocation tagging")
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407080044.DWMC9N9I-lkp@intel.com/
Suggested-by: Christoph Hellwig <hch@infradead.org>
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Kees Cook <keescook@chromium.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Sourav Panda <souravpanda@google.com>
Cc: <stable@vger.kernel.org> [6.10]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
mm/page_alloc.c