Lines Matching refs:swapped
410 * @swapped: the change in number of pages swapped from inode
415 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped
416 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped)
418 static void shmem_recalc_inode(struct inode *inode, long alloced, long swapped)
425 info->swapped += swapped;
426 freed = info->alloced - info->swapped -
431 * shmem_writepage() has to raise swapped before nrpages is lowered -
435 if (swapped > 0)
436 freed += swapped;
864 * given offsets are swapped out.
874 unsigned long swapped = 0;
882 swapped++;
893 return swapped << PAGE_SHIFT;
898 * given vma is swapped out.
908 unsigned long swapped;
911 swapped = READ_ONCE(info->swapped);
918 if (!swapped)
922 return swapped << PAGE_SHIFT;
964 /* The folio has been swapped out */
1144 if (info->alloced - info->swapped != inode->i_mapping->nrpages)
1330 * Move the swapped pages for an inode to page cache. Returns the count
1331 * of pages swapped in, or the error in case of failure.
1406 if (!info->swapped) {
1424 if (!info->swapped)
1518 * Add inode to shmem_unuse()'s list of swapped-out inodes,
1522 * we've incremented swapped, because shmem_unuse_inode() will
1523 * prune a !swapped inode from the swaplist under this mutex.
1826 * Caller has to make sure that *foliop contains a valid swapped folio.
1992 /* Has the folio been truncated or swapped out? */