Lines Matching defs:discard_cmd_control
391 struct discard_cmd_control { struct
392 struct task_struct *f2fs_issue_discard; /* discard thread */
393 struct list_head entry_list; /* 4KB discard entry list */
394 struct list_head pend_list[MAX_PLIST_NUM];/* store pending entries */
395 struct list_head wait_list; /* store on-flushing entries */
396 struct list_head fstrim_list; /* in-flight discard from fstrim */
397 wait_queue_head_t discard_wait_queue; /* waiting queue for wake-up */
398 struct mutex cmd_lock;
399 unsigned int nr_discards; /* # of discards in the list */
400 unsigned int max_discards; /* max. discards to be issued */
401 unsigned int max_discard_request; /* max. discard request per round */
402 unsigned int min_discard_issue_time; /* min. interval between discard issue */
403 unsigned int mid_discard_issue_time; /* mid. interval between discard issue */
404 unsigned int max_discard_issue_time; /* max. interval between discard issue */
405 unsigned int discard_io_aware_gran; /* minimum discard granularity not be aware of I/O */
406 unsigned int discard_urgent_util; /* utilization which issue discard proactively */
407 unsigned int discard_granularity; /* discard granularity */
408 unsigned int max_ordered_discard; /* maximum discard granularity issued by lba order */
409 unsigned int undiscard_blks; /* # of undiscard blocks */
410 unsigned int next_pos; /* next discard position */
411 atomic_t issued_discard; /* # of issued discard */
412 atomic_t queued_discard; /* # of queued discard */
413 atomic_t discard_cmd_cnt; /* # of cached cmd count */
414 struct rb_root_cached root; /* root of discard rb-tree */
415 bool rbtree_check; /* config for consistence check */
416 bool discard_wake; /* to wake up discard thread */