Lines Matching refs:bdi
93 &wb->bdi->tot_write_bandwidth); in wb_io_lists_populated()
104 &wb->bdi->tot_write_bandwidth) < 0); in wb_io_lists_depopulated()
240 struct backing_dev_info *bdi = inode_to_bdi(inode); in __inode_attach_wb() local
248 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
252 wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in __inode_attach_wb()
258 wb = &bdi->wb; in __inode_attach_wb()
284 if (wb != &wb->bdi->wb) in inode_cgwb_move_to_attached()
359 static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_down_write_wb_switch_rwsem() argument
361 down_write(&bdi->wb_switch_rwsem); in bdi_down_write_wb_switch_rwsem()
364 static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi) in bdi_up_write_wb_switch_rwsem() argument
366 up_write(&bdi->wb_switch_rwsem); in bdi_up_write_wb_switch_rwsem()
465 struct backing_dev_info *bdi = inode_to_bdi(isw->inodes[0]); in inode_switch_wbs_work_fn() local
475 down_read(&bdi->wb_switch_rwsem); in inode_switch_wbs_work_fn()
504 up_read(&bdi->wb_switch_rwsem); in inode_switch_wbs_work_fn()
557 struct backing_dev_info *bdi = inode_to_bdi(inode); in inode_switch_wbs() local
584 isw->new_wb = wb_get_create(bdi, memcg_css, GFP_ATOMIC); in inode_switch_wbs()
636 isw->new_wb = wb_get_create(wb->bdi, memcg_css, GFP_KERNEL); in cleanup_offline_cgwb()
641 isw->new_wb = &wb->bdi->wb; /* wb_get() is noop for bdi's wb */ in cleanup_offline_cgwb()
943 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_split_bdi_pages()
970 static void bdi_split_work_to_wbs(struct backing_dev_info *bdi, in bdi_split_work_to_wbs() argument
975 struct bdi_writeback *wb = list_entry(&bdi->wb_list, in bdi_split_work_to_wbs()
981 list_for_each_entry_continue_rcu(wb, &bdi->wb_list, bdi_node) { in bdi_split_work_to_wbs()
982 DEFINE_WB_COMPLETION(fallback_work_done, bdi); in bdi_split_work_to_wbs()
1051 struct backing_dev_info *bdi; in cgroup_writeback_by_id() local
1059 bdi = bdi_get_by_id(bdi_id); in cgroup_writeback_by_id()
1060 if (!bdi) in cgroup_writeback_by_id()
1077 wb = wb_get_lookup(bdi, memcg_css); in cgroup_writeback_by_id()
1115 bdi_put(bdi); in cgroup_writeback_by_id()
1158 static void bdi_down_write_wb_switch_rwsem(struct backing_dev_info *bdi) { } in bdi_down_write_wb_switch_rwsem() argument
1159 static void bdi_up_write_wb_switch_rwsem(struct backing_dev_info *bdi) { } in bdi_up_write_wb_switch_rwsem() argument
1198 static void bdi_split_work_to_wbs(struct backing_dev_info *bdi, in bdi_split_work_to_wbs() argument
1204 if (!skip_if_busy || !writeback_in_progress(&bdi->wb)) { in bdi_split_work_to_wbs()
1206 wb_queue_work(&bdi->wb, base_work); in bdi_split_work_to_wbs()
2226 set_worker_desc("flush-%s", bdi_dev_name(wb->bdi)); in wb_workfn()
2264 static void __wakeup_flusher_threads_bdi(struct backing_dev_info *bdi, in __wakeup_flusher_threads_bdi() argument
2269 if (!bdi_has_dirty_io(bdi)) in __wakeup_flusher_threads_bdi()
2272 list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node) in __wakeup_flusher_threads_bdi()
2276 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi, in wakeup_flusher_threads_bdi() argument
2280 __wakeup_flusher_threads_bdi(bdi, reason); in wakeup_flusher_threads_bdi()
2289 struct backing_dev_info *bdi; in wakeup_flusher_threads() local
2298 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) in wakeup_flusher_threads()
2299 __wakeup_flusher_threads_bdi(bdi, reason); in wakeup_flusher_threads()
2323 struct backing_dev_info *bdi; in wakeup_dirtytime_writeback() local
2326 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) { in wakeup_dirtytime_writeback()
2329 list_for_each_entry_rcu(wb, &bdi->wb_list, bdi_node) in wakeup_dirtytime_writeback()
2490 (wb->bdi->capabilities & BDI_CAP_WRITEBACK)) in __mark_inode_dirty()
2597 struct backing_dev_info *bdi = sb->s_bdi; in __writeback_inodes_sb_nr() local
2598 DEFINE_WB_COMPLETION(done, bdi); in __writeback_inodes_sb_nr()
2608 if (!bdi_has_dirty_io(bdi) || bdi == &noop_backing_dev_info) in __writeback_inodes_sb_nr()
2675 struct backing_dev_info *bdi = sb->s_bdi; in sync_inodes_sb() local
2676 DEFINE_WB_COMPLETION(done, bdi); in sync_inodes_sb()
2692 if (bdi == &noop_backing_dev_info) in sync_inodes_sb()
2697 bdi_down_write_wb_switch_rwsem(bdi); in sync_inodes_sb()
2698 bdi_split_work_to_wbs(bdi, &work, false); in sync_inodes_sb()
2700 bdi_up_write_wb_switch_rwsem(bdi); in sync_inodes_sb()