Lines Matching defs:swap_info_struct

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