mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
mm/shmem: remove unneeded xa_is_value() check in shmem_unuse_swap_entries()
As only value entry will be added to fbatch in shmem_find_swap_entries(), there is no need to do xa_is_value() check in shmem_unuse_swap_entries(). Link: https://lkml.kernel.org/r/20250516170939.965736-6-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Hugh Dickins <hughd@google.com> Cc: Kairui Song <kasong@tencent.com> Cc: kernel test robot <oliver.sang@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
a5cdbe9f37
commit
c5a9deace6
|
|
@ -1446,8 +1446,6 @@ static int shmem_unuse_swap_entries(struct inode *inode,
|
|||
for (i = 0; i < folio_batch_count(fbatch); i++) {
|
||||
struct folio *folio = fbatch->folios[i];
|
||||
|
||||
if (!xa_is_value(folio))
|
||||
continue;
|
||||
error = shmem_swapin_folio(inode, indices[i], &folio, SGP_CACHE,
|
||||
mapping_gfp_mask(mapping), NULL, NULL);
|
||||
if (error == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user