]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/rmap: inline folio_test_large_maybe_mapped_shared() into callers
authorLance Yang <lance.yang@linux.dev>
Thu, 24 Apr 2025 15:56:06 +0000 (23:56 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 13 May 2025 06:50:45 +0000 (23:50 -0700)
commit4428a35f91f0f0e31d874038b3091e1c5a461f34
tree9a0a8c9e2a977354922cf28b1d640ca50e5f8cb2
parentee43f26b49e9ddad0f06c149085343613a9d73a4
mm/rmap: inline folio_test_large_maybe_mapped_shared() into callers

To prevent the function from being used when CONFIG_MM_ID is disabled, we
intend to inline it into its few callers, which also would help maintain
the expected code placement.

Link: https://lkml.kernel.org/r/20250424155606.57488-1-lance.yang@linux.dev
Signed-off-by: Lance Yang <lance.yang@linux.dev>
Suggested-by: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Mingzhe Yang <mingzhe.yang@ly.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
include/linux/page-flags.h
include/linux/rmap.h
mm/memory.c