Lines Matching refs:bdi

110 				&wb->bdi->tot_write_bandwidth);  in wb_io_lists_populated()
121 &wb->bdi->tot_write_bandwidth) < 0); in wb_io_lists_depopulated()
184 wake_up_all(&wb->bdi->wb_waitq); in finish_writeback_work()
217 static void wb_wait_for_completion(struct backing_dev_info *bdi, in wb_wait_for_completion() argument
221 wait_event(bdi->wb_waitq, !atomic_read(&done->cnt)); in wb_wait_for_completion()
245 struct backing_dev_info *bdi = inode_to_bdi(inode); in __inode_attach_wb() local
253 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
257 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
263 wb = &bdi->wb; in __inode_attach_wb()
470 struct backing_dev_info *bdi = inode_to_bdi(inode); in inode_switch_wbs() local
486 isw->new_wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in inode_switch_wbs()
773 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_split_bdi_pages()
800 static void bdi_split_work_to_wbs(struct backing_dev_info *bdi, in bdi_split_work_to_wbs() argument
805 struct bdi_writeback *wb = list_entry(&bdi->wb_list, in bdi_split_work_to_wbs()
811 list_for_each_entry_continue_rcu(wb, &bdi->wb_list, bdi_node) { in bdi_split_work_to_wbs()
859 wb_wait_for_completion(bdi, &fallback_work_done); in bdi_split_work_to_wbs()
923 static void bdi_split_work_to_wbs(struct backing_dev_info *bdi, in bdi_split_work_to_wbs() argument
929 if (!skip_if_busy || !writeback_in_progress(&bdi->wb)) { in bdi_split_work_to_wbs()
931 wb_queue_work(&bdi->wb, base_work); in bdi_split_work_to_wbs()
1937 set_worker_desc("flush-%s", dev_name(wb->bdi->dev)); in wb_workfn()
1975 static void __wakeup_flusher_threads_bdi(struct backing_dev_info *bdi, in __wakeup_flusher_threads_bdi() argument
1980 if (!bdi_has_dirty_io(bdi)) in __wakeup_flusher_threads_bdi()
1983 list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node) in __wakeup_flusher_threads_bdi()
1987 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi, in wakeup_flusher_threads_bdi() argument
1991 __wakeup_flusher_threads_bdi(bdi, reason); in wakeup_flusher_threads_bdi()
2000 struct backing_dev_info *bdi; in wakeup_flusher_threads() local
2009 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) in wakeup_flusher_threads()
2010 __wakeup_flusher_threads_bdi(bdi, reason); in wakeup_flusher_threads()
2034 struct backing_dev_info *bdi; in wakeup_dirtytime_writeback() local
2037 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) { in wakeup_dirtytime_writeback()
2040 list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node) in wakeup_dirtytime_writeback()
2192 WARN(bdi_cap_writeback_dirty(wb->bdi) && in __mark_inode_dirty()
2194 "bdi-%s not registered\n", wb->bdi->name); in __mark_inode_dirty()
2217 if (bdi_cap_writeback_dirty(wb->bdi) && wakeup_bdi) in __mark_inode_dirty()
2333 struct backing_dev_info *bdi = sb->s_bdi; in __writeback_inodes_sb_nr() local
2335 if (!bdi_has_dirty_io(bdi) || bdi == &noop_backing_dev_info) in __writeback_inodes_sb_nr()
2340 wb_wait_for_completion(bdi, &done); in __writeback_inodes_sb_nr()
2412 struct backing_dev_info *bdi = sb->s_bdi; in sync_inodes_sb() local
2419 if (bdi == &noop_backing_dev_info) in sync_inodes_sb()
2423 bdi_split_work_to_wbs(bdi, &work, false); in sync_inodes_sb()
2424 wb_wait_for_completion(bdi, &done); in sync_inodes_sb()