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