Lines Matching defs:swapped

428  * @swapped: the change in number of pages swapped from inode
433 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped
434 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped)
436 * Return: true if swapped was incremented from 0, for shmem_writeout().
438 bool shmem_recalc_inode(struct inode *inode, long alloced, long swapped)
446 info->swapped += swapped;
447 freed = info->alloced - info->swapped -
452 * shmem_writeout() has to raise swapped before nrpages is lowered -
456 if (swapped > 0) {
457 if (info->swapped == swapped)
459 freed += swapped;
1003 * given offsets are swapped out.
1013 unsigned long swapped = 0;
1021 swapped += 1 << xas_get_order(&xas);
1031 return swapped << PAGE_SHIFT;
1036 * given vma is swapped out.
1048 unsigned long swapped;
1051 swapped = READ_ONCE(info->swapped);
1058 if (!swapped)
1062 return swapped << PAGE_SHIFT;
1103 /* The folio has been swapped out */
1303 if (data_race(info->alloced - info->swapped != inode->i_mapping->nrpages))
1445 pr_warn("%s: ino=%llu i_blocks=%llu alloced=%lu swapped=%lu nrpages=%lu\n",
1447 info->alloced, info->swapped, inode->i_mapping->nrpages);
1494 * Move the swapped pages for an inode to page cache. Returns the count
1495 * of pages swapped in, or the error in case of failure.
1567 if (!info->swapped) {
1591 if (!info->swapped)
1701 * Add inode to shmem_unuse()'s list of swapped-out inodes,
1705 * we've incremented swapped, because shmem_unuse() will
1706 * prune a !swapped inode from the swaplist.
2022 freed = pages + info->alloced - info->swapped -
2253 * Caller has to make sure that *foliop contains a valid swapped folio.
2476 /* Has the folio been truncated or swapped out? */