mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
mm: shmem: drop the unnecessary folio_nr_pages()
We've got the number of pages in the folio earlier, thus remove the redundant folio_nr_pages() call. Link: https://lkml.kernel.org/r/67c80182ebd949e3894908e01e224697c143aabb.1756200587.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
ab1c34c834
commit
6d11dec130
@@ -2430,7 +2430,6 @@ static int shmem_swapin_folio(struct inode *inode, pgoff_t index,
|
||||
goto failed;
|
||||
}
|
||||
folio_wait_writeback(folio);
|
||||
nr_pages = folio_nr_pages(folio);
|
||||
|
||||
/*
|
||||
* Some architectures may have to restore extra metadata to the
|
||||
|
||||
Reference in New Issue
Block a user