Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Baolin Wang and committed by
Andrew Morton
6d11dec1 ab1c34c8

-1
-1
mm/shmem.c
··· 2430 2430 goto failed; 2431 2431 } 2432 2432 folio_wait_writeback(folio); 2433 - nr_pages = folio_nr_pages(folio); 2434 2433 2435 2434 /* 2436 2435 * Some architectures may have to restore extra metadata to the