Lines Matching defs:swap_info_struct

275 struct swap_info_struct {  struct
276 struct percpu_ref users; /* indicate and keep swap device valid. */
277 unsigned long flags; /* SWP_USED etc: see above */
278 signed short prio; /* swap priority of this type */
279 struct plist_node list; /* entry in swap_active_head */
280 signed char type; /* strange name for an index */
281 unsigned int max; /* extent of the swap_map */
282 unsigned char *swap_map; /* vmalloc'ed array of usage counts */
283 struct swap_cluster_info *cluster_info; /* cluster info. Only for SSD */
284 struct swap_cluster_list free_clusters; /* free clusters list */
285 unsigned int lowest_bit; /* index of first free in swap_map */
286 unsigned int highest_bit; /* index of last free in swap_map */
287 unsigned int pages; /* total of usable pages of swap */
288 unsigned int inuse_pages; /* number of those currently in use */
289 unsigned int cluster_next; /* likely index for next allocation */
290 unsigned int cluster_nr; /* countdown to next cluster search */
291 unsigned int __percpu *cluster_next_cpu; /*percpu index for next allocation */
292 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
293 struct rb_root swap_extent_root;/* root of the swap extent rbtree */
294 struct block_device *bdev; /* swap device or bdev of swap file */
295 struct file *swap_file; /* seldom referenced */
296 unsigned int old_block_size; /* seldom referenced */
297 struct completion comp; /* seldom referenced */
299 unsigned long *frontswap_map; /* frontswap in-use, one bit per page */
300 atomic_t frontswap_pages; /* frontswap pages in-use counter */
302 spinlock_t lock; /*
315 spinlock_t cont_lock; /*
319 struct work_struct discard_work; /* discard worker */
320 struct swap_cluster_list discard_clusters; /* discard clusters list */
321 struct plist_node avail_lists[]; /*