Lines Matching defs:swap_info_struct

206 struct swap_info_struct {  struct
207 unsigned long flags; /* SWP_USED etc: see above */
208 signed short prio; /* swap priority of this type */
209 struct plist_node list; /* entry in swap_active_head */
210 struct plist_node avail_list; /* entry in swap_avail_head */
211 signed char type; /* strange name for an index */
212 unsigned int max; /* extent of the swap_map */
213 unsigned char *swap_map; /* vmalloc'ed array of usage counts */
214 struct swap_cluster_info *cluster_info; /* cluster info. Only for SSD */
215 struct swap_cluster_info free_cluster_head; /* free cluster list head */
216 struct swap_cluster_info free_cluster_tail; /* free cluster list tail */
217 unsigned int lowest_bit; /* index of first free in swap_map */
218 unsigned int highest_bit; /* index of last free in swap_map */
219 unsigned int pages; /* total of usable pages of swap */
220 unsigned int inuse_pages; /* number of those currently in use */
221 unsigned int cluster_next; /* likely index for next allocation */
222 unsigned int cluster_nr; /* countdown to next cluster search */
223 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
224 struct swap_extent *curr_swap_extent;
225 struct swap_extent first_swap_extent;
226 struct block_device *bdev; /* swap device or bdev of swap file */
227 struct file *swap_file; /* seldom referenced */
228 unsigned int old_block_size; /* seldom referenced */
230 unsigned long *frontswap_map; /* frontswap in-use, one bit per page */
231 atomic_t frontswap_pages; /* frontswap pages in-use counter */
233 spinlock_t lock; /*
246 struct work_struct discard_work; /* discard worker */
247 struct swap_cluster_info discard_cluster_head; /* list head of discard clusters */
248 struct swap_cluster_info discard_cluster_tail; /* list tail of discard clusters */