Lines Matching refs:swapped
427 * @swapped: the change in number of pages swapped from inode
432 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped
433 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped)
435 * Return: true if swapped was incremented from 0, for shmem_writeout().
437 bool shmem_recalc_inode(struct inode *inode, long alloced, long swapped)
445 info->swapped += swapped;
446 freed = info->alloced - info->swapped -
451 * shmem_writeout() has to raise swapped before nrpages is lowered -
455 if (swapped > 0) {
456 if (info->swapped == swapped)
458 freed += swapped;
980 * given offsets are swapped out.
990 unsigned long swapped = 0;
998 swapped += 1 << xas_get_order(&xas);
1008 return swapped << PAGE_SHIFT;
1013 * given vma is swapped out.
1023 unsigned long swapped;
1026 swapped = READ_ONCE(info->swapped);
1033 if (!swapped)
1037 return swapped << PAGE_SHIFT;
1079 /* The folio has been swapped out */
1262 if (info->alloced - info->swapped != inode->i_mapping->nrpages)
1449 * Move the swapped pages for an inode to page cache. Returns the count
1450 * of pages swapped in, or the error in case of failure.
1522 if (!info->swapped) {
1546 if (!info->swapped)
1644 * Add inode to shmem_unuse()'s list of swapped-out inodes,
1648 * we've incremented swapped, because shmem_unuse() will
1649 * prune a !swapped inode from the swaplist.
1976 freed = pages + info->alloced - info->swapped -
2267 * Caller has to make sure that *foliop contains a valid swapped folio.
2501 /* Has the folio been truncated or swapped out? */