Lines Matching defs:discard_cmd_control
341 struct discard_cmd_control { struct
342 struct task_struct *f2fs_issue_discard; /* discard thread */
343 struct list_head entry_list; /* 4KB discard entry list */
344 struct list_head pend_list[MAX_PLIST_NUM];/* store pending entries */
345 struct list_head wait_list; /* store on-flushing entries */
346 struct list_head fstrim_list; /* in-flight discard from fstrim */
347 wait_queue_head_t discard_wait_queue; /* waiting queue for wake-up */
348 unsigned int discard_wake; /* to wake up discard thread */
349 struct mutex cmd_lock;
350 unsigned int nr_discards; /* # of discards in the list */
351 unsigned int max_discards; /* max. discards to be issued */
352 unsigned int discard_granularity; /* discard granularity */
353 unsigned int undiscard_blks; /* # of undiscard blocks */
354 unsigned int next_pos; /* next discard position */
355 atomic_t issued_discard; /* # of issued discard */
356 atomic_t queued_discard; /* # of queued discard */
357 atomic_t discard_cmd_cnt; /* # of cached cmd count */
358 struct rb_root_cached root; /* root of discard rb-tree */
359 bool rbtree_check; /* config for consistence check */