Lines Matching refs:swap_info_struct
43 static bool swap_count_continued(struct swap_info_struct *, pgoff_t,
45 static void free_swap_count_continuations(struct swap_info_struct *);
81 struct swap_info_struct *swap_info[MAX_SWAPFILES];
96 __try_to_reclaim_swap(struct swap_info_struct *si, unsigned long offset) in __try_to_reclaim_swap()
124 static int discard_swap(struct swap_info_struct *si) in discard_swap()
161 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
258 static void swap_cluster_schedule_discard(struct swap_info_struct *si, in swap_cluster_schedule_discard()
289 static void swap_do_scheduled_discard(struct swap_info_struct *si) in swap_do_scheduled_discard()
332 struct swap_info_struct *si; in swap_discard_work()
334 si = container_of(work, struct swap_info_struct, discard_work); in swap_discard_work()
345 static void inc_cluster_info_page(struct swap_info_struct *p, in inc_cluster_info_page()
373 static void dec_cluster_info_page(struct swap_info_struct *p, in dec_cluster_info_page()
414 scan_swap_map_ssd_cluster_conflict(struct swap_info_struct *si, in scan_swap_map_ssd_cluster_conflict()
437 static void scan_swap_map_try_ssd_cluster(struct swap_info_struct *si, in scan_swap_map_try_ssd_cluster()
487 static unsigned long scan_swap_map(struct swap_info_struct *si, in scan_swap_map()
641 struct swap_info_struct *si, *next; in get_swap_page()
706 struct swap_info_struct *si; in get_swap_page_of_type()
725 static struct swap_info_struct *swap_info_get(swp_entry_t entry) in swap_info_get()
727 struct swap_info_struct *p; in swap_info_get()
761 static unsigned char swap_entry_free(struct swap_info_struct *p, in swap_entry_free()
834 struct swap_info_struct *p; in swap_free()
848 struct swap_info_struct *p; in swapcache_free()
865 struct swap_info_struct *p; in page_swapcount()
945 struct swap_info_struct *p; in free_swap_and_cache()
998 struct swap_info_struct *sis = swap_info[type]; in swap_type_of()
1057 struct swap_info_struct *sis = swap_info[type]; in count_swap_pages()
1282 static unsigned int find_next_to_unuse(struct swap_info_struct *si, in find_next_to_unuse()
1333 struct swap_info_struct *si = swap_info[type]; in try_to_unuse()
1581 struct swap_info_struct *sis; in map_swap_entry()
1620 static void destroy_swap_extents(struct swap_info_struct *sis) in destroy_swap_extents()
1647 add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, in add_swap_extent()
1717 static int setup_swap_extents(struct swap_info_struct *sis, sector_t *span) in setup_swap_extents()
1743 static void _enable_swap_info(struct swap_info_struct *p, int prio, in _enable_swap_info()
1780 static void enable_swap_info(struct swap_info_struct *p, int prio, in enable_swap_info()
1793 static void reinsert_swap_info(struct swap_info_struct *p) in reinsert_swap_info()
1804 struct swap_info_struct *p = NULL; in SYSCALL_DEFINE1()
1856 struct swap_info_struct *si = p; in SYSCALL_DEFINE1()
1975 struct swap_info_struct *si; in swap_start()
1998 struct swap_info_struct *si = v; in swap_next()
2025 struct swap_info_struct *si = v; in swap_show()
2092 static struct swap_info_struct *alloc_swap_info(void) in alloc_swap_info()
2094 struct swap_info_struct *p; in alloc_swap_info()
2139 static int claim_swapfile(struct swap_info_struct *p, struct inode *inode) in claim_swapfile()
2168 static unsigned long read_swap_header(struct swap_info_struct *p, in read_swap_header()
2246 static int setup_swap_map_and_extents(struct swap_info_struct *p, in setup_swap_map_and_extents()
2335 static bool swap_discardable(struct swap_info_struct *si) in swap_discardable()
2347 struct swap_info_struct *p; in SYSCALL_DEFINE2()
2393 struct swap_info_struct *q = swap_info[i]; in SYSCALL_DEFINE2()
2571 struct swap_info_struct *si = swap_info[type]; in si_swapinfo()
2594 struct swap_info_struct *p; in __swap_duplicate()
2701 struct swap_info_struct *page_swap_info(struct page *page) in page_swap_info()
2743 struct swap_info_struct *si; in add_swap_count_continuation()
2842 static bool swap_count_continued(struct swap_info_struct *si, in swap_count_continued()
2923 static void free_swap_count_continuations(struct swap_info_struct *si) in free_swap_count_continuations()