Lines Matching defs:swap_info_struct

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