• Home
  • Raw
  • Download

Lines Matching defs:swap_info_struct

293 struct swap_info_struct {  struct
294 struct percpu_ref users; /* indicate and keep swap device valid. */
295 unsigned long flags; /* SWP_USED etc: see above */
296 signed short prio; /* swap priority of this type */
297 struct plist_node list; /* entry in swap_active_head */
298 signed char type; /* strange name for an index */
299 unsigned int max; /* extent of the swap_map */
300 unsigned char *swap_map; /* vmalloc'ed array of usage counts */
301 unsigned long *zeromap; /* kvmalloc'ed bitmap to track zero pages */
302 struct swap_cluster_info *cluster_info; /* cluster info. Only for SSD */
303 struct list_head free_clusters; /* free clusters list */
304 struct list_head full_clusters; /* full clusters list */
305 struct list_head nonfull_clusters[SWAP_NR_ORDERS];
307 struct list_head frag_clusters[SWAP_NR_ORDERS];
309 unsigned int frag_cluster_nr[SWAP_NR_ORDERS];
310 unsigned int lowest_bit; /* index of first free in swap_map */
311 unsigned int highest_bit; /* index of last free in swap_map */
312 unsigned int pages; /* total of usable pages of swap */
313 unsigned int inuse_pages; /* number of those currently in use */
314 unsigned int cluster_next; /* likely index for next allocation */
315 unsigned int cluster_nr; /* countdown to next cluster search */
316 unsigned int __percpu *cluster_next_cpu; /*percpu index for next allocation */
317 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
318 struct rb_root swap_extent_root;/* root of the swap extent rbtree */
319 struct block_device *bdev; /* swap device or bdev of swap file */
320 struct file *swap_file; /* seldom referenced */
321 struct completion comp; /* seldom referenced */
322 spinlock_t lock; /*
335 spinlock_t cont_lock; /*
339 struct work_struct discard_work; /* discard worker */
340 struct work_struct reclaim_work; /* reclaim worker */
341 struct list_head discard_clusters; /* discard clusters list */
342 struct plist_node avail_lists[]; /*