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: use 'folio' for shmem_partial_swap_usage()

It is more straightforward to use the term `folio'. No functional changes.

Link: https://lkml.kernel.org/r/a2d39608d99cba1130cacd9cffbafc6949193c08.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
ab1c34c8 6c382617

+4 -4
+4 -4
mm/shmem.c
··· 1006 1006 pgoff_t start, pgoff_t end) 1007 1007 { 1008 1008 XA_STATE(xas, &mapping->i_pages, start); 1009 - struct page *page; 1009 + struct folio *folio; 1010 1010 unsigned long swapped = 0; 1011 1011 unsigned long max = end - 1; 1012 1012 1013 1013 rcu_read_lock(); 1014 - xas_for_each(&xas, page, max) { 1015 - if (xas_retry(&xas, page)) 1014 + xas_for_each(&xas, folio, max) { 1015 + if (xas_retry(&xas, folio)) 1016 1016 continue; 1017 - if (xa_is_value(page)) 1017 + if (xa_is_value(folio)) 1018 1018 swapped += 1 << xas_get_order(&xas); 1019 1019 if (xas.xa_index == max) 1020 1020 break;