Lines Matching defs:swapcache
4137 * Note: freeing up the swapcache will fail if some PTEs are
4190 * the swapcache if there is little hope that we can reuse.
4532 * If we want to map a page that's in the swapcache writable, we
4534 * user. Try freeing the swapcache to get rid of the swapcache
4750 struct folio *swapcache = NULL, *folio;
4858 swapcache = folio;
4866 * swapcache from under us. The page pin, and pte_same test
4868 * swapcache, we need to check that the page's swap has not
4876 * hwpoisoned dirty swapcache pages are kept for killing
4891 folio = swapcache;
4895 folio = swapcache;
4897 } else if (folio != swapcache)
4901 * If we want to map a page that's in the swapcache writable, we
4959 * must never point at an anonymous page in the swapcache that is
4961 * no filesystem set PG_mappedtodisk on a page in the swapcache. Sanity
4999 if (folio != swapcache) {
5002 * swapcache -> certainly exclusive.
5011 * So if we stumble over such a page in the swapcache
5047 * exposing them to the swapcache or because the swap entry indicates
5067 if (unlikely(folio != swapcache)) {
5070 folio_put_swap(swapcache, NULL);
5094 * Remove the swap entry and conditionally try to free up the swapcache.
5102 if (unlikely(folio != swapcache)) {
5109 * parallel locked swapcache.
5111 folio_unlock(swapcache);
5112 folio_put(swapcache);
5140 if (folio != swapcache) {
5141 folio_unlock(swapcache);
5142 folio_put(swapcache);