Lines Matching refs:swapped
357 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped
358 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped)
367 freed = info->alloced - info->swapped - inode->i_mapping->nrpages;
780 * given offsets are swapped out.
790 unsigned long swapped = 0;
797 swapped++;
807 return swapped << PAGE_SHIFT;
812 * given vma is swapped out.
822 unsigned long swapped;
825 swapped = READ_ONCE(info->swapped);
832 if (!swapped)
836 return swapped << PAGE_SHIFT;
1056 info->swapped -= nr_swaps_freed;
1075 if (info->alloced - info->swapped != inode->i_mapping->nrpages) {
1236 * Move the swapped pages for an inode to page cache. Returns the count
1237 * of pages swapped in, or the error in case of failure.
1330 if (!info->swapped) {
1349 if (!info->swapped)
1432 * Add inode to shmem_unuse()'s list of swapped-out inodes,
1436 * we've incremented swapped, because shmem_unuse_inode() will
1437 * prune a !swapped inode from the swaplist under this mutex.
1448 info->swapped++;
1694 * Caller has to make sure that *pagep contains a valid swapped page.
1763 info->swapped--;