Lines Matching defs:discard_cmd_control

410 struct discard_cmd_control {  struct
411 struct task_struct *f2fs_issue_discard; /* discard thread */
412 struct list_head entry_list; /* 4KB discard entry list */
413 struct list_head pend_list[MAX_PLIST_NUM];/* store pending entries */
414 struct list_head wait_list; /* store on-flushing entries */
415 struct list_head fstrim_list; /* in-flight discard from fstrim */
416 wait_queue_head_t discard_wait_queue; /* waiting queue for wake-up */
417 struct mutex cmd_lock;
418 unsigned int nr_discards; /* # of discards in the list */
419 unsigned int max_discards; /* max. discards to be issued */
420 unsigned int max_discard_request; /* max. discard request per round */
421 unsigned int min_discard_issue_time; /* min. interval between discard issue */
422 unsigned int mid_discard_issue_time; /* mid. interval between discard issue */
423 unsigned int max_discard_issue_time; /* max. interval between discard issue */
424 unsigned int discard_io_aware_gran; /* minimum discard granularity not be aware of I/O */
425 unsigned int discard_urgent_util; /* utilization which issue discard proactively */
426 unsigned int discard_granularity; /* discard granularity */
427 unsigned int max_ordered_discard; /* maximum discard granularity issued by lba order */
428 unsigned int discard_io_aware; /* io_aware policy */
429 unsigned int undiscard_blks; /* # of undiscard blocks */
430 unsigned int next_pos; /* next discard position */
431 atomic_t issued_discard; /* # of issued discard */
432 atomic_t queued_discard; /* # of queued discard */
433 atomic_t discard_cmd_cnt; /* # of cached cmd count */
434 struct rb_root_cached root; /* root of discard rb-tree */
435 bool rbtree_check; /* config for consistence check */
436 bool discard_wake; /* to wake up discard thread */