Re: [PATCH v3 1/1] mm/rmap: inline folio_test_large_maybe_mapped_shared() into callers
From: David Hildenbrand
Date: Thu Apr 24 2025 - 16:28:14 EST
On 24.04.25 17:56, Lance Yang wrote:
From: Lance Yang <lance.yang@xxxxxxxxx>
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.
Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
Signed-off-by: Lance Yang <lance.yang@xxxxxxxxx>
---
Yeah, this way it's harder to abuse ... having the test functions is a
leftover from when I had set/clear functions during development and
experimented with using a pageflag (which involves atomics even on tail
pages unfortunately).
Acked-by: David Hildenbrand <david@xxxxxxxxxx>
--
Cheers,
David / dhildenb