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>
This commit is contained in:
parent
6c3826173e
commit
ab1c34c834
1 changed files with 4 additions and 4 deletions
|
|
@ -1006,15 +1006,15 @@ unsigned long shmem_partial_swap_usage(struct address_space *mapping,
|
|||
pgoff_t start, pgoff_t end)
|
||||
{
|
||||
XA_STATE(xas, &mapping->i_pages, start);
|
||||
struct page *page;
|
||||
struct folio *folio;
|
||||
unsigned long swapped = 0;
|
||||
unsigned long max = end - 1;
|
||||
|
||||
rcu_read_lock();
|
||||
xas_for_each(&xas, page, max) {
|
||||
if (xas_retry(&xas, page))
|
||||
xas_for_each(&xas, folio, max) {
|
||||
if (xas_retry(&xas, folio))
|
||||
continue;
|
||||
if (xa_is_value(page))
|
||||
if (xa_is_value(folio))
|
||||
swapped += 1 << xas_get_order(&xas);
|
||||
if (xas.xa_index == max)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue