Lines Matching refs:bdi
187 unsigned long tot_bw = atomic_long_read(&wb->bdi->tot_write_bandwidth); in wb_min_max_ratio()
188 unsigned long long min = wb->bdi->min_ratio; in wb_min_max_ratio()
189 unsigned long long max = wb->bdi->max_ratio; in wb_min_max_ratio()
240 *minp = wb->bdi->min_ratio; in wb_min_max_ratio()
241 *maxp = wb->bdi->max_ratio; in wb_min_max_ratio()
584 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
589 wb->bdi->max_prop_frac, nr); in __wb_writeout_add()
653 int bdi_set_min_ratio(struct backing_dev_info *bdi, unsigned int min_ratio) in bdi_set_min_ratio() argument
659 if (min_ratio > bdi->max_ratio) { in bdi_set_min_ratio()
662 if (min_ratio < bdi->min_ratio) { in bdi_set_min_ratio()
663 delta = bdi->min_ratio - min_ratio; in bdi_set_min_ratio()
665 bdi->min_ratio = min_ratio; in bdi_set_min_ratio()
667 delta = min_ratio - bdi->min_ratio; in bdi_set_min_ratio()
670 bdi->min_ratio = min_ratio; in bdi_set_min_ratio()
681 int bdi_set_max_ratio(struct backing_dev_info *bdi, unsigned max_ratio) in bdi_set_max_ratio() argument
689 if (bdi->min_ratio > max_ratio) { in bdi_set_max_ratio()
692 bdi->max_ratio = max_ratio; in bdi_set_max_ratio()
693 bdi->max_prop_frac = (FPROP_FRAC_BASE * max_ratio) / 100; in bdi_set_max_ratio()
941 if (unlikely(wb->bdi->capabilities & BDI_CAP_STRICTLIMIT)) { in wb_position_ratio()
1112 &wb->bdi->tot_write_bandwidth) <= 0); in wb_update_write_bandwidth()
1288 if (unlikely(wb->bdi->capabilities & BDI_CAP_STRICTLIMIT)) { in wb_update_dirty_ratelimit()
1575 struct backing_dev_info *bdi = wb->bdi; in balance_dirty_pages() local
1576 bool strictlimit = bdi->capabilities & BDI_CAP_STRICTLIMIT; in balance_dirty_pages()
1884 struct backing_dev_info *bdi = inode_to_bdi(inode); in balance_dirty_pages_ratelimited_flags() local
1890 if (!(bdi->capabilities & BDI_CAP_WRITEBACK)) in balance_dirty_pages_ratelimited_flags()
1894 wb = wb_get_create_current(bdi, GFP_KERNEL); in balance_dirty_pages_ratelimited_flags()
1896 wb = &bdi->wb; in balance_dirty_pages_ratelimited_flags()
2071 struct backing_dev_info *bdi; in laptop_sync_completion() local
2075 list_for_each_entry_rcu(bdi, &bdi_list, bdi_list) in laptop_sync_completion()
2076 del_timer(&bdi->laptop_mode_wb_timer); in laptop_sync_completion()
2920 struct backing_dev_info *bdi = inode_to_bdi(inode); in __folio_end_writeback() local
2928 if (bdi->capabilities & BDI_CAP_WRITEBACK_ACCT) { in __folio_end_writeback()
2967 struct backing_dev_info *bdi = inode_to_bdi(inode); in __folio_start_writeback() local
2980 if (bdi->capabilities & BDI_CAP_WRITEBACK_ACCT) { in __folio_start_writeback()