Lines Matching defs:discard_cmd_control
310 struct discard_cmd_control { struct
311 struct task_struct *f2fs_issue_discard; /* discard thread */
312 struct list_head entry_list; /* 4KB discard entry list */
313 struct list_head pend_list[MAX_PLIST_NUM];/* store pending entries */
314 struct list_head wait_list; /* store on-flushing entries */
315 struct list_head fstrim_list; /* in-flight discard from fstrim */
316 wait_queue_head_t discard_wait_queue; /* waiting queue for wake-up */
317 unsigned int discard_wake; /* to wake up discard thread */
318 struct mutex cmd_lock;
319 unsigned int nr_discards; /* # of discards in the list */
320 unsigned int max_discards; /* max. discards to be issued */
321 unsigned int discard_granularity; /* discard granularity */
322 unsigned int undiscard_blks; /* # of undiscard blocks */
323 unsigned int next_pos; /* next discard position */
324 atomic_t issued_discard; /* # of issued discard */
325 atomic_t issing_discard; /* # of issing discard */
326 atomic_t discard_cmd_cnt; /* # of cached cmd count */
327 struct rb_root root; /* root of discard rb-tree */
328 bool rbtree_check; /* config for consistence check */