Lines Matching refs:swap_info_struct

47 static bool swap_count_continued(struct swap_info_struct *, pgoff_t,
49 static void free_swap_count_continuations(struct swap_info_struct *);
91 struct swap_info_struct *swap_info[MAX_SWAPFILES];
108 __try_to_reclaim_swap(struct swap_info_struct *si, unsigned long offset) in __try_to_reclaim_swap()
136 static int discard_swap(struct swap_info_struct *si) in discard_swap()
173 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
290 static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, in lock_cluster()
314 struct swap_info_struct *si, unsigned long offset) in lock_cluster_or_swap_info()
327 static inline void unlock_cluster_or_swap_info(struct swap_info_struct *si, in unlock_cluster_or_swap_info()
392 static void swap_cluster_schedule_discard(struct swap_info_struct *si, in swap_cluster_schedule_discard()
409 static void __free_cluster(struct swap_info_struct *si, unsigned long idx) in __free_cluster()
421 static void swap_do_scheduled_discard(struct swap_info_struct *si) in swap_do_scheduled_discard()
446 struct swap_info_struct *si; in swap_discard_work()
448 si = container_of(work, struct swap_info_struct, discard_work); in swap_discard_work()
455 static void alloc_cluster(struct swap_info_struct *si, unsigned long idx) in alloc_cluster()
464 static void free_cluster(struct swap_info_struct *si, unsigned long idx) in free_cluster()
487 static void inc_cluster_info_page(struct swap_info_struct *p, in inc_cluster_info_page()
507 static void dec_cluster_info_page(struct swap_info_struct *p, in dec_cluster_info_page()
528 scan_swap_map_ssd_cluster_conflict(struct swap_info_struct *si, in scan_swap_map_ssd_cluster_conflict()
551 static bool scan_swap_map_try_ssd_cluster(struct swap_info_struct *si, in scan_swap_map_try_ssd_cluster()
610 static void __del_from_avail_list(struct swap_info_struct *p) in __del_from_avail_list()
618 static void del_from_avail_list(struct swap_info_struct *p) in del_from_avail_list()
625 static void swap_range_alloc(struct swap_info_struct *si, unsigned long offset, in swap_range_alloc()
642 static void add_to_avail_list(struct swap_info_struct *p) in add_to_avail_list()
654 static void swap_range_free(struct swap_info_struct *si, unsigned long offset, in swap_range_free()
684 static int scan_swap_map_slots(struct swap_info_struct *si, in scan_swap_map_slots()
881 static int swap_alloc_cluster(struct swap_info_struct *si, swp_entry_t *slot) in swap_alloc_cluster()
916 static void swap_free_cluster(struct swap_info_struct *si, unsigned long idx) in swap_free_cluster()
928 static unsigned long scan_swap_map(struct swap_info_struct *si, in scan_swap_map()
946 struct swap_info_struct *si, *next; in get_swap_pages()
1033 struct swap_info_struct *si; in get_swap_page_of_type()
1052 static struct swap_info_struct *__swap_info_get(swp_entry_t entry) in __swap_info_get()
1054 struct swap_info_struct *p; in __swap_info_get()
1082 static struct swap_info_struct *_swap_info_get(swp_entry_t entry) in _swap_info_get()
1084 struct swap_info_struct *p; in _swap_info_get()
1100 static struct swap_info_struct *swap_info_get(swp_entry_t entry) in swap_info_get()
1102 struct swap_info_struct *p; in swap_info_get()
1110 static struct swap_info_struct *swap_info_get_cont(swp_entry_t entry, in swap_info_get_cont()
1111 struct swap_info_struct *q) in swap_info_get_cont()
1113 struct swap_info_struct *p; in swap_info_get_cont()
1126 static unsigned char __swap_entry_free_locked(struct swap_info_struct *p, in __swap_entry_free_locked()
1163 static unsigned char __swap_entry_free(struct swap_info_struct *p, in __swap_entry_free()
1176 static void swap_entry_free(struct swap_info_struct *p, swp_entry_t entry) in swap_entry_free()
1199 struct swap_info_struct *p; in swap_free()
1216 struct swap_info_struct *si; in put_swap_page()
1264 struct swap_info_struct *si; in split_swap_cluster()
1287 struct swap_info_struct *p, *prev; in swapcache_free_entries()
1321 struct swap_info_struct *p; in page_swapcount()
1337 int __swap_count(struct swap_info_struct *si, swp_entry_t entry) in __swap_count()
1344 static int swap_swapcount(struct swap_info_struct *si, swp_entry_t entry) in swap_swapcount()
1364 struct swap_info_struct *si; in __swp_swapcount()
1379 struct swap_info_struct *p; in swp_swapcount()
1418 static bool swap_page_trans_huge_swapped(struct swap_info_struct *si, in swap_page_trans_huge_swapped()
1448 struct swap_info_struct *si; in page_swapped()
1466 struct swap_info_struct *si; in page_trans_huge_map_swapcount()
1554 struct swap_info_struct *p; in reuse_swap_page()
1614 struct swap_info_struct *p; in free_swap_and_cache()
1672 struct swap_info_struct *sis = swap_info[type]; in swap_type_of()
1731 struct swap_info_struct *sis = swap_info[type]; in count_swap_pages()
1969 static unsigned int find_next_to_unuse(struct swap_info_struct *si, in find_next_to_unuse()
2017 struct swap_info_struct *si = swap_info[type]; in try_to_unuse()
2266 struct swap_info_struct *sis; in map_swap_entry()
2302 static void destroy_swap_extents(struct swap_info_struct *sis) in destroy_swap_extents()
2329 add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, in add_swap_extent()
2399 static int setup_swap_extents(struct swap_info_struct *sis, sector_t *span) in setup_swap_extents()
2425 static int swap_node(struct swap_info_struct *p) in swap_node()
2437 static void _enable_swap_info(struct swap_info_struct *p, int prio, in _enable_swap_info()
2483 static void enable_swap_info(struct swap_info_struct *p, int prio, in enable_swap_info()
2496 static void reinsert_swap_info(struct swap_info_struct *p) in reinsert_swap_info()
2518 struct swap_info_struct *p = NULL; in SYSCALL_DEFINE1()
2568 struct swap_info_struct *si = p; in SYSCALL_DEFINE1()
2700 struct swap_info_struct *si; in swap_start()
2723 struct swap_info_struct *si = v; in swap_next()
2750 struct swap_info_struct *si = v; in swap_show()
2817 static struct swap_info_struct *alloc_swap_info(void) in alloc_swap_info()
2819 struct swap_info_struct *p; in alloc_swap_info()
2867 static int claim_swapfile(struct swap_info_struct *p, struct inode *inode) in claim_swapfile()
2924 static unsigned long read_swap_header(struct swap_info_struct *p, in read_swap_header()
3000 static int setup_swap_map_and_extents(struct swap_info_struct *p, in setup_swap_map_and_extents()
3085 static bool swap_discardable(struct swap_info_struct *si) in swap_discardable()
3097 struct swap_info_struct *p; in SYSCALL_DEFINE2()
3341 struct swap_info_struct *si = swap_info[type]; in si_swapinfo()
3364 struct swap_info_struct *p; in __swap_duplicate()
3472 struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info()
3477 struct swap_info_struct *page_swap_info(struct page *page) in page_swap_info()
3516 struct swap_info_struct *si; in add_swap_count_continuation()
3625 static bool swap_count_continued(struct swap_info_struct *si, in swap_count_continued()
3713 static void free_swap_count_continuations(struct swap_info_struct *si) in free_swap_count_continuations()
3735 struct swap_info_struct *si, *next; in mem_cgroup_throttle_swaprate()