• Home
  • Raw
  • Download

Lines Matching defs:discard_cmd_control

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