]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm: shmem: drop the unnecessary folio_nr_pages()
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Tue, 26 Aug 2025 09:35:55 +0000 (17:35 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:19 +0000 (16:55 -0700)
commit6d11dec130ad16f2b08ef88fb7f3d37dc99d74d6
tree0e935ee571c88157a4fe228d2224e92e7e89d086
parentab1c34c83407b6ae1f1313789cb7ec813c26b5e8
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>
mm/shmem.c