diff options
| author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2025-08-26 12:35:55 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-09-14 02:55:19 +0300 |
| commit | 6d11dec130ad16f2b08ef88fb7f3d37dc99d74d6 (patch) | |
| tree | 0e935ee571c88157a4fe228d2224e92e7e89d086 | |
| parent | ab1c34c83407b6ae1f1313789cb7ec813c26b5e8 (diff) | |
| download | linux-6d11dec130ad16f2b08ef88fb7f3d37dc99d74d6.tar.xz | |
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>
| -rw-r--r-- | mm/shmem.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index b4d4f0e9c40a..640fecc42f60 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -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 |
