The swap_cache_get_folio() no longer returns shadow entries, so the xa_is_value() check is unnecessary. Signed-off-by: Kefeng Wang --- mm/mincore.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/mincore.c b/mm/mincore.c index d561f1e5c461..1c72cc3ac87b 100644 --- a/mm/mincore.c +++ b/mm/mincore.c @@ -92,8 +92,7 @@ static unsigned char mincore_swap(swp_entry_t entry, bool shmem) folio = swap_cache_get_folio(entry); if (shmem) put_swap_device(si); - /* The swap cache space contains either folio, shadow or NULL */ - if (folio && !xa_is_value(folio)) { + if (folio) { present = folio_test_uptodate(folio); folio_put(folio); } -- 2.27.0