Lines Matching defs:swap_info_struct

246 struct swap_info_struct {  struct
247 struct percpu_ref users; /* indicate and keep swap device valid. */
248 unsigned long flags; /* SWP_USED etc: see above */
249 signed short prio; /* swap priority of this type */
250 struct plist_node list; /* entry in swap_active_head */
251 signed char type; /* strange name for an index */
252 unsigned int max; /* extent of the swap_map */
253 unsigned char *swap_map; /* vmalloc'ed array of usage counts */
254 struct swap_cluster_info *cluster_info; /* cluster info. Only for SSD */
255 struct swap_cluster_list free_clusters; /* free clusters list */
256 unsigned int lowest_bit; /* index of first free in swap_map */
257 unsigned int highest_bit; /* index of last free in swap_map */
258 unsigned int pages; /* total of usable pages of swap */
259 unsigned int inuse_pages; /* number of those currently in use */
260 unsigned int cluster_next; /* likely index for next allocation */
261 unsigned int cluster_nr; /* countdown to next cluster search */
262 unsigned int __percpu *cluster_next_cpu; /*percpu index for next allocation */
263 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
264 struct rb_root swap_extent_root;/* root of the swap extent rbtree */
265 struct block_device *bdev; /* swap device or bdev of swap file */
266 struct file *swap_file; /* seldom referenced */
267 unsigned int old_block_size; /* seldom referenced */
268 struct completion comp; /* seldom referenced */
270 unsigned long *frontswap_map; /* frontswap in-use, one bit per page */
271 atomic_t frontswap_pages; /* frontswap pages in-use counter */
273 spinlock_t lock; /*
286 spinlock_t cont_lock; /*
290 struct work_struct discard_work; /* discard worker */
291 struct swap_cluster_list discard_clusters; /* discard clusters list */
292 struct plist_node avail_lists[]; /*