Lines Matching defs:discard_cmd_control
361 struct discard_cmd_control { struct
362 struct task_struct *f2fs_issue_discard; /* discard thread */
363 struct list_head entry_list; /* 4KB discard entry list */
364 struct list_head pend_list[MAX_PLIST_NUM];/* store pending entries */
365 struct list_head wait_list; /* store on-flushing entries */
366 struct list_head fstrim_list; /* in-flight discard from fstrim */
367 wait_queue_head_t discard_wait_queue; /* waiting queue for wake-up */
368 unsigned int discard_wake; /* to wake up discard thread */
369 struct mutex cmd_lock;
370 unsigned int nr_discards; /* # of discards in the list */
371 unsigned int max_discards; /* max. discards to be issued */
372 unsigned int discard_granularity; /* discard granularity */
373 unsigned int undiscard_blks; /* # of undiscard blocks */
374 unsigned int next_pos; /* next discard position */
375 atomic_t issued_discard; /* # of issued discard */
376 atomic_t queued_discard; /* # of queued discard */
377 atomic_t discard_cmd_cnt; /* # of cached cmd count */
378 struct rb_root_cached root; /* root of discard rb-tree */
379 bool rbtree_check; /* config for consistence check */
380 int discard_type; /* discard type */