Lines Matching defs:si

144 static bool swap_is_has_cache(struct swap_info_struct *si,  in swap_is_has_cache()
159 static bool swap_is_last_map(struct swap_info_struct *si, in swap_is_last_map()
183 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap()
275 static int discard_swap(struct swap_info_struct *si) in discard_swap()
345 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
390 static inline unsigned int cluster_index(struct swap_info_struct *si, in cluster_index()
396 static inline unsigned int cluster_offset(struct swap_info_struct *si, in cluster_offset()
402 static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, in lock_cluster()
426 struct swap_info_struct *si, unsigned long offset) in lock_cluster_or_swap_info()
439 static inline void unlock_cluster_or_swap_info(struct swap_info_struct *si, in unlock_cluster_or_swap_info()
449 static void swap_cluster_schedule_discard(struct swap_info_struct *si, in swap_cluster_schedule_discard()
468 static void __free_cluster(struct swap_info_struct *si, struct swap_cluster_info *ci) in __free_cluster()
485 static void swap_do_scheduled_discard(struct swap_info_struct *si) in swap_do_scheduled_discard()
510 struct swap_info_struct *si; in swap_discard_work() local
521 struct swap_info_struct *si; in swap_users_ref_free() local
527 static void free_cluster(struct swap_info_struct *si, struct swap_cluster_info *ci) in free_cluster()
555 static void inc_cluster_info_page(struct swap_info_struct *si, in inc_cluster_info_page()
576 static void dec_cluster_info_page(struct swap_info_struct *si, in dec_cluster_info_page()
602 static bool cluster_reclaim_range(struct swap_info_struct *si, in cluster_reclaim_range()
639 static bool cluster_scan_range(struct swap_info_struct *si, in cluster_scan_range()
667 static bool cluster_alloc_range(struct swap_info_struct *si, struct swap_cluster_info *ci, in cluster_alloc_range()
700 static unsigned int alloc_swap_scan_cluster(struct swap_info_struct *si, unsigned long offset, in alloc_swap_scan_cluster()
743 static void swap_reclaim_full_clusters(struct swap_info_struct *si, bool force) in swap_reclaim_full_clusters()
782 struct swap_info_struct *si; in swap_reclaim_work() local
796 static unsigned long cluster_alloc_swap_entry(struct swap_info_struct *si, int order, in cluster_alloc_swap_entry()
913 static void __del_from_avail_list(struct swap_info_struct *si) in __del_from_avail_list()
922 static void del_from_avail_list(struct swap_info_struct *si) in del_from_avail_list()
929 static void swap_range_alloc(struct swap_info_struct *si, unsigned long offset, in swap_range_alloc()
949 static void add_to_avail_list(struct swap_info_struct *si) in add_to_avail_list()
959 static void swap_range_free(struct swap_info_struct *si, unsigned long offset, in swap_range_free()
1005 static void set_cluster_next(struct swap_info_struct *si, unsigned long next) in set_cluster_next()
1032 static bool swap_offset_available_and_locked(struct swap_info_struct *si, in swap_offset_available_and_locked()
1048 static int cluster_alloc_swap(struct swap_info_struct *si, in cluster_alloc_swap()
1071 static int scan_swap_map_slots(struct swap_info_struct *si, in scan_swap_map_slots()
1271 struct swap_info_struct *si, *next; in get_swap_pages() local
1347 struct swap_info_struct *si; in _swap_info_get() local
1395 static unsigned char __swap_entry_free_locked(struct swap_info_struct *si, in __swap_entry_free_locked()
1476 struct swap_info_struct *si; in get_swap_device() local
1509 static unsigned char __swap_entry_free(struct swap_info_struct *si, in __swap_entry_free()
1525 static bool __swap_entries_free(struct swap_info_struct *si, in __swap_entries_free()
1576 static void swap_entry_range_free(struct swap_info_struct *si, swp_entry_t entry, in swap_entry_range_free()
1596 static void cluster_swap_free_nr(struct swap_info_struct *si, in cluster_swap_free_nr()
1655 struct swap_info_struct *si; in put_swap_folio() local
1719 struct swap_info_struct *si = swp_swap_info(entry); in __swap_count() local
1730 int swap_swapcount(struct swap_info_struct *si, swp_entry_t entry) in swap_swapcount()
1749 struct swap_info_struct *si; in swp_swapcount() local
1788 static bool swap_page_trans_huge_swapped(struct swap_info_struct *si, in swap_page_trans_huge_swapped()
1819 struct swap_info_struct *si = _swap_info_get(entry); in folio_swapped() local
1895 struct swap_info_struct *si; in free_swap_and_cache_nr() local
1959 struct swap_info_struct *si = swap_type_to_swap_info(type); in get_swap_page_of_type() local
2033 struct swap_info_struct *si = swap_type_to_swap_info(type); in swapdev_block() local
2185 struct swap_info_struct *si; in unuse_pte_range() local
2358 static unsigned int find_next_to_unuse(struct swap_info_struct *si, in find_next_to_unuse()
2390 struct swap_info_struct *si = swap_info[type]; in try_to_unuse() local
2632 static int swap_node(struct swap_info_struct *si) in swap_node()
2644 static void setup_swap_info(struct swap_info_struct *si, int prio, in setup_swap_info()
2675 static void _enable_swap_info(struct swap_info_struct *si) in _enable_swap_info()
2699 static void enable_swap_info(struct swap_info_struct *si, int prio, in enable_swap_info()
2720 static void reinsert_swap_info(struct swap_info_struct *si) in reinsert_swap_info()
2796 struct swap_info_struct *si = p; in SYSCALL_DEFINE1() local
2938 struct swap_info_struct *si; in swap_start() local
2959 struct swap_info_struct *si = v; in swap_next() local
2984 struct swap_info_struct *si = v; in swap_show() local
3117 static int claim_swapfile(struct swap_info_struct *si, struct inode *inode) in claim_swapfile()
3165 static unsigned long read_swap_header(struct swap_info_struct *si, in read_swap_header()
3240 static int setup_swap_map_and_extents(struct swap_info_struct *si, in setup_swap_map_and_extents()
3279 static struct swap_cluster_info *setup_clusters(struct swap_info_struct *si, in setup_clusters()
3373 struct swap_info_struct *si; in SYSCALL_DEFINE2() local
3623 struct swap_info_struct *si = swap_info[type]; in si_swapinfo() local
3646 struct swap_info_struct *si; in __swap_duplicate() local
3755 void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr) in swapcache_clear()
3799 struct swap_info_struct *si; in add_swap_count_continuation() local
3904 static bool swap_count_continued(struct swap_info_struct *si, in swap_count_continued()
3988 static void free_swap_count_continuations(struct swap_info_struct *si) in free_swap_count_continuations()
4009 struct swap_info_struct *si, *next; in __folio_throttle_swaprate() local