Lines Matching refs:folio

338 	struct folio *folio = page_folio(page);  in page_swap_entry()  local
339 swp_entry_t entry = folio->swap; in page_swap_entry()
341 entry.val += folio_page_idx(folio, page); in page_swap_entry()
348 void *workingset_eviction(struct folio *folio, struct mem_cgroup *target_memcg);
349 void workingset_refault(struct folio *folio, void *shadow);
350 void workingset_activation(struct folio *folio);
372 void lru_note_cost_refault(struct folio *);
373 void folio_add_lru(struct folio *);
374 void folio_add_lru_vma(struct folio *, struct vm_area_struct *);
376 void folio_mark_accessed(struct folio *);
395 void folio_deactivate(struct folio *folio);
396 void folio_mark_lazyfree(struct folio *folio);
419 long remove_mapping(struct address_space *mapping, struct folio *folio);
473 swp_entry_t folio_alloc_swap(struct folio *folio);
474 bool folio_free_swap(struct folio *folio);
475 void put_swap_folio(struct folio *folio, swp_entry_t entry);
564 static inline void put_swap_folio(struct folio *folio, swp_entry_t swp) in put_swap_folio() argument
583 static inline swp_entry_t folio_alloc_swap(struct folio *folio) in folio_alloc_swap() argument
590 static inline bool folio_free_swap(struct folio *folio) in folio_free_swap() argument
633 void __folio_throttle_swaprate(struct folio *folio, gfp_t gfp);
634 static inline void folio_throttle_swaprate(struct folio *folio, gfp_t gfp) in folio_throttle_swaprate() argument
638 __folio_throttle_swaprate(folio, gfp); in folio_throttle_swaprate()
641 static inline void folio_throttle_swaprate(struct folio *folio, gfp_t gfp) in folio_throttle_swaprate() argument
647 void mem_cgroup_swapout(struct folio *folio, swp_entry_t entry);
648 int __mem_cgroup_try_charge_swap(struct folio *folio, swp_entry_t entry);
649 static inline int mem_cgroup_try_charge_swap(struct folio *folio, in mem_cgroup_try_charge_swap() argument
654 return __mem_cgroup_try_charge_swap(folio, entry); in mem_cgroup_try_charge_swap()
666 extern bool mem_cgroup_swap_full(struct folio *folio);
668 static inline void mem_cgroup_swapout(struct folio *folio, swp_entry_t entry) in mem_cgroup_swapout() argument
672 static inline int mem_cgroup_try_charge_swap(struct folio *folio, in mem_cgroup_try_charge_swap() argument
688 static inline bool mem_cgroup_swap_full(struct folio *folio) in mem_cgroup_swap_full() argument