diff --git a/mm/mincore.c b/mm/mincore.c index a2119c50c50c..16059ed47711 100644 --- a/mm/mincore.c +++ b/mm/mincore.c @@ -91,8 +91,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); }