Lines Matching full:si
71 struct swap_info_struct *si; in __swap_type_to_info() local
73 si = READ_ONCE(swap_info[type]); /* rcu_dereference() */ in __swap_type_to_info()
74 VM_WARN_ON_ONCE(percpu_ref_is_zero(&si->users)); /* race with swapoff */ in __swap_type_to_info()
75 return si; in __swap_type_to_info()
84 struct swap_info_struct *si, pgoff_t offset) in __swap_offset_to_cluster() argument
86 VM_WARN_ON_ONCE(percpu_ref_is_zero(&si->users)); /* race with swapoff */ in __swap_offset_to_cluster()
87 VM_WARN_ON_ONCE(offset >= si->max); in __swap_offset_to_cluster()
88 return &si->cluster_info[offset / SWAPFILE_CLUSTER]; in __swap_offset_to_cluster()
98 struct swap_info_struct *si, unsigned long offset, bool irq) in __swap_cluster_lock() argument
100 struct swap_cluster_info *ci = __swap_offset_to_cluster(si, offset); in __swap_cluster_lock()
112 VM_WARN_ON_ONCE(percpu_ref_is_zero(&si->users)); /* race with swapoff */ in __swap_cluster_lock()
122 * @si: swap device the cluster belongs to.
129 struct swap_info_struct *si, unsigned long offset) in swap_cluster_lock() argument
131 return __swap_cluster_lock(si, offset, false); in swap_cluster_lock()
260 void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr);
306 struct swap_info_struct *si = __swap_entry_to_info(entry); in non_swapcache_batch() local
316 if ((si->swap_map[offset + i] & SWAP_HAS_CACHE)) in non_swapcache_batch()
326 struct swap_info_struct *si, pgoff_t offset, bool irq) in swap_cluster_lock() argument
400 static inline void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr) in swapcache_clear() argument