On 1/14/26 14:45, Kalyazin, Nikita wrote:
From: Patrick Roy <[email protected]>This drops an optimization in gup_fast_folio_allowed() where secretmem_mapping() was only called if CONFIG_SECRETMEM=y. secretmem is enabled by default since commit b758fe6df50d ("mm/secretmem: make it on by default"), so the secretmem check did not actually end up elided in most cases anymore anyway. This is in preparation of the generalization of handling mappings where direct map entries of folios are set to not present. Currently, mappings that match this description are secretmem mappings (memfd_secret()). Later, some guest_memfd configurations will also fall into this category. Signed-off-by: Patrick Roy <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Signed-off-by: Nikita Kalyazin <[email protected]>
Acked-by: David Hildenbrand (Red Hat) <[email protected]> -- Cheers David
