Lines Matching defs:si

147 static long swap_usage_in_pages(struct swap_info_struct *si)  in swap_usage_in_pages()
164 static bool swap_is_has_cache(struct swap_info_struct *si, in swap_is_has_cache()
179 static bool swap_is_last_map(struct swap_info_struct *si, in swap_is_last_map()
203 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap()
292 static int discard_swap(struct swap_info_struct *si) in discard_swap()
362 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
421 static inline unsigned int cluster_index(struct swap_info_struct *si, in cluster_index()
427 static inline struct swap_cluster_info *offset_to_cluster(struct swap_info_struct *si, in offset_to_cluster()
433 static inline unsigned int cluster_offset(struct swap_info_struct *si, in cluster_offset()
439 static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, in lock_cluster()
455 static void move_cluster(struct swap_info_struct *si, in move_cluster()
479 static void swap_cluster_schedule_discard(struct swap_info_struct *si, in swap_cluster_schedule_discard()
496 static void __free_cluster(struct swap_info_struct *si, struct swap_cluster_info *ci) in __free_cluster()
513 struct swap_info_struct *si, struct list_head *list) in isolate_lock_cluster()
548 static bool swap_do_scheduled_discard(struct swap_info_struct *si) in swap_do_scheduled_discard()
587 struct swap_info_struct *si; in swap_discard_work() local
596 struct swap_info_struct *si; in swap_users_ref_free() local
606 static void free_cluster(struct swap_info_struct *si, struct swap_cluster_info *ci) in free_cluster()
630 static void partial_free_cluster(struct swap_info_struct *si, in partial_free_cluster()
646 static void relocate_cluster(struct swap_info_struct *si, in relocate_cluster()
674 static void inc_cluster_info_page(struct swap_info_struct *si, in inc_cluster_info_page()
687 static bool cluster_reclaim_range(struct swap_info_struct *si, in cluster_reclaim_range()
725 static bool cluster_scan_range(struct swap_info_struct *si, in cluster_scan_range()
750 static bool cluster_alloc_range(struct swap_info_struct *si, struct swap_cluster_info *ci, in cluster_alloc_range()
776 static unsigned int alloc_swap_scan_cluster(struct swap_info_struct *si, in alloc_swap_scan_cluster()
832 static void swap_reclaim_full_clusters(struct swap_info_struct *si, bool force) in swap_reclaim_full_clusters()
874 struct swap_info_struct *si; in swap_reclaim_work() local
886 static unsigned long cluster_alloc_swap_entry(struct swap_info_struct *si, int order, in cluster_alloc_swap_entry()
1001 static void del_from_avail_list(struct swap_info_struct *si, bool swapoff) in del_from_avail_list()
1040 static void add_to_avail_list(struct swap_info_struct *si, bool swapon) in add_to_avail_list()
1087 static bool swap_usage_add(struct swap_info_struct *si, unsigned int nr_entries) in swap_usage_add()
1103 static void swap_usage_sub(struct swap_info_struct *si, unsigned int nr_entries) in swap_usage_sub()
1115 static void swap_range_alloc(struct swap_info_struct *si, in swap_range_alloc()
1124 static void swap_range_free(struct swap_info_struct *si, unsigned long offset, in swap_range_free()
1163 static int cluster_alloc_swap(struct swap_info_struct *si, in cluster_alloc_swap()
1180 static int scan_swap_map_slots(struct swap_info_struct *si, in scan_swap_map_slots()
1218 static bool get_swap_device_info(struct swap_info_struct *si) in get_swap_device_info()
1238 struct swap_info_struct *si, *next; in get_swap_pages() local
1297 struct swap_info_struct *si; in _swap_info_get() local
1329 static unsigned char __swap_entry_free_locked(struct swap_info_struct *si, in __swap_entry_free_locked()
1410 struct swap_info_struct *si; in get_swap_device() local
1435 static unsigned char __swap_entry_free(struct swap_info_struct *si, in __swap_entry_free()
1451 static bool __swap_entries_free(struct swap_info_struct *si, in __swap_entries_free()
1497 static void swap_entry_range_free(struct swap_info_struct *si, in swap_entry_range_free()
1525 static void cluster_swap_free_nr(struct swap_info_struct *si, in cluster_swap_free_nr()
1569 struct swap_info_struct *si; in put_swap_folio() local
1592 struct swap_info_struct *si = NULL; in swapcache_free_entries() local
1609 struct swap_info_struct *si = swp_swap_info(entry); in __swap_count() local
1620 int swap_swapcount(struct swap_info_struct *si, swp_entry_t entry) in swap_swapcount()
1639 struct swap_info_struct *si; in swp_swapcount() local
1678 static bool swap_page_trans_huge_swapped(struct swap_info_struct *si, in swap_page_trans_huge_swapped()
1709 struct swap_info_struct *si = _swap_info_get(entry); in folio_swapped() local
1785 struct swap_info_struct *si; in free_swap_and_cache_nr() local
1849 struct swap_info_struct *si = swap_type_to_swap_info(type); in get_swap_page_of_type() local
1924 struct swap_info_struct *si = swap_type_to_swap_info(type); in swapdev_block() local
2076 struct swap_info_struct *si; in unuse_pte_range() local
2249 static unsigned int find_next_to_unuse(struct swap_info_struct *si, in find_next_to_unuse()
2281 struct swap_info_struct *si = swap_info[type]; in try_to_unuse() local
2523 static int swap_node(struct swap_info_struct *si) in swap_node()
2535 static void setup_swap_info(struct swap_info_struct *si, int prio, in setup_swap_info()
2566 static void _enable_swap_info(struct swap_info_struct *si) in _enable_swap_info()
2588 static void enable_swap_info(struct swap_info_struct *si, int prio, in enable_swap_info()
2609 static void reinsert_swap_info(struct swap_info_struct *si) in reinsert_swap_info()
2638 static void wait_for_allocation(struct swap_info_struct *si) in wait_for_allocation()
2703 struct swap_info_struct *si = p; in SYSCALL_DEFINE1() local
2836 struct swap_info_struct *si; in swap_start() local
2857 struct swap_info_struct *si = v; in swap_next() local
2882 struct swap_info_struct *si = v; in swap_show() local
3016 static int claim_swapfile(struct swap_info_struct *si, struct inode *inode) in claim_swapfile()
3064 static unsigned long read_swap_header(struct swap_info_struct *si, in read_swap_header()
3134 static int setup_swap_map_and_extents(struct swap_info_struct *si, in setup_swap_map_and_extents()
3173 static struct swap_cluster_info *setup_clusters(struct swap_info_struct *si, in setup_clusters()
3268 struct swap_info_struct *si; in SYSCALL_DEFINE2() local
3518 struct swap_info_struct *si = swap_info[type]; in si_swapinfo() local
3541 struct swap_info_struct *si; in __swap_duplicate() local
3654 void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr) in swapcache_clear()
3698 struct swap_info_struct *si; in add_swap_count_continuation() local
3801 static bool swap_count_continued(struct swap_info_struct *si, in swap_count_continued()
3885 static void free_swap_count_continuations(struct swap_info_struct *si) in free_swap_count_continuations()
3906 struct swap_info_struct *si, *next; in __folio_throttle_swaprate() local