Lines Matching defs:swap_info_struct
231 struct swap_info_struct { struct
232 unsigned long flags; /* SWP_USED etc: see above */
233 signed short prio; /* swap priority of this type */
234 struct plist_node list; /* entry in swap_active_head */
235 struct plist_node avail_lists[MAX_NUMNODES];/* entry in swap_avail_heads */
236 signed char type; /* strange name for an index */
237 unsigned int max; /* extent of the swap_map */
238 unsigned char *swap_map; /* vmalloc'ed array of usage counts */
239 struct swap_cluster_info *cluster_info; /* cluster info. Only for SSD */
240 struct swap_cluster_list free_clusters; /* free clusters list */
241 unsigned int lowest_bit; /* index of first free in swap_map */
242 unsigned int highest_bit; /* index of last free in swap_map */
243 unsigned int pages; /* total of usable pages of swap */
244 unsigned int inuse_pages; /* number of those currently in use */
245 unsigned int cluster_next; /* likely index for next allocation */
246 unsigned int cluster_nr; /* countdown to next cluster search */
247 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
248 struct swap_extent *curr_swap_extent;
249 struct swap_extent first_swap_extent;
250 struct block_device *bdev; /* swap device or bdev of swap file */
251 struct file *swap_file; /* seldom referenced */
252 unsigned int old_block_size; /* seldom referenced */
254 unsigned long *frontswap_map; /* frontswap in-use, one bit per page */
255 atomic_t frontswap_pages; /* frontswap pages in-use counter */
257 spinlock_t lock; /*
270 spinlock_t cont_lock; /*
274 struct work_struct discard_work; /* discard worker */
275 struct swap_cluster_list discard_clusters; /* discard clusters list */