Lines Matching refs:swp_entry_t

336 static inline swp_entry_t page_swap_entry(struct page *page)  in page_swap_entry()
339 swp_entry_t entry = folio->swap; in page_swap_entry()
473 swp_entry_t folio_alloc_swap(struct folio *folio);
475 void put_swap_folio(struct folio *folio, swp_entry_t entry);
476 extern swp_entry_t get_swap_page_of_type(int);
477 extern int get_swap_pages(int n, swp_entry_t swp_entries[], int entry_size);
478 extern int add_swap_count_continuation(swp_entry_t, gfp_t);
479 extern void swap_shmem_alloc(swp_entry_t);
480 extern int swap_duplicate(swp_entry_t);
481 extern int swapcache_prepare(swp_entry_t);
482 extern void swap_free(swp_entry_t);
483 extern void swapcache_free_entries(swp_entry_t *entries, int n);
484 extern int free_swap_and_cache(swp_entry_t);
489 extern int __swap_count(swp_entry_t entry);
490 extern int swap_swapcount(struct swap_info_struct *si, swp_entry_t entry);
491 extern int swp_swapcount(swp_entry_t entry);
493 extern struct swap_info_struct *swp_swap_info(swp_entry_t entry);
497 extern struct swap_info_struct *get_swap_device(swp_entry_t entry);
506 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info()
511 static inline struct swap_info_struct *get_swap_device(swp_entry_t entry) in get_swap_device()
541 static inline int add_swap_count_continuation(swp_entry_t swp, gfp_t gfp_mask) in add_swap_count_continuation()
546 static inline void swap_shmem_alloc(swp_entry_t swp) in swap_shmem_alloc()
550 static inline int swap_duplicate(swp_entry_t swp) in swap_duplicate()
555 static inline void swap_free(swp_entry_t swp) in swap_free()
559 static inline void put_swap_folio(struct folio *folio, swp_entry_t swp) in put_swap_folio()
563 static inline int __swap_count(swp_entry_t entry) in __swap_count()
568 static inline int swap_swapcount(struct swap_info_struct *si, swp_entry_t entry) in swap_swapcount()
573 static inline int swp_swapcount(swp_entry_t entry) in swp_swapcount()
578 static inline swp_entry_t folio_alloc_swap(struct folio *folio) in folio_alloc_swap()
580 swp_entry_t entry; in folio_alloc_swap()
599 extern int split_swap_cluster(swp_entry_t entry);
601 static inline int split_swap_cluster(swp_entry_t entry) in split_swap_cluster()
642 void mem_cgroup_swapout(struct folio *folio, swp_entry_t entry);
643 int __mem_cgroup_try_charge_swap(struct folio *folio, swp_entry_t entry);
645 swp_entry_t entry) in mem_cgroup_try_charge_swap()
652 extern void __mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages);
653 static inline void mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages) in mem_cgroup_uncharge_swap()
663 static inline void mem_cgroup_swapout(struct folio *folio, swp_entry_t entry) in mem_cgroup_swapout()
668 swp_entry_t entry) in mem_cgroup_try_charge_swap()
673 static inline void mem_cgroup_uncharge_swap(swp_entry_t entry, in mem_cgroup_uncharge_swap()