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