Searched refs:dcc (Results 1 – 3 of 3) sorted by relevance
809 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in __create_discard_cmd() local815 pend_list = &dcc->pend_list[plist_idx(len)]; in __create_discard_cmd()828 atomic_inc(&dcc->discard_cmd_cnt); in __create_discard_cmd()829 dcc->undiscard_blks += len; in __create_discard_cmd()839 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in __attach_discard_cmd() local845 rb_insert_color(&dc->rb_node, &dcc->root); in __attach_discard_cmd()850 static void __detach_discard_cmd(struct discard_cmd_control *dcc, in __detach_discard_cmd() argument854 atomic_dec(&dcc->issing_discard); in __detach_discard_cmd()857 rb_erase(&dc->rb_node, &dcc->root); in __detach_discard_cmd()858 dcc->undiscard_blks -= dc->len; in __detach_discard_cmd()[all …]
835 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in wake_up_discard_thread() local842 mutex_lock(&dcc->cmd_lock); in wake_up_discard_thread()844 if (i + 1 < dcc->discard_granularity) in wake_up_discard_thread()846 if (!list_empty(&dcc->pend_list[i])) { in wake_up_discard_thread()851 mutex_unlock(&dcc->cmd_lock); in wake_up_discard_thread()855 dcc->discard_wake = 1; in wake_up_discard_thread()856 wake_up_interruptible_all(&dcc->discard_wait_queue); in wake_up_discard_thread()
570 struct percpu_counter *dcc = &sbi->s_dirtyclusters_counter; in ext4_has_free_clusters() local573 dirty_clusters = percpu_counter_read_positive(dcc); in ext4_has_free_clusters()586 dirty_clusters = percpu_counter_sum_positive(dcc); in ext4_has_free_clusters()