Lines Matching refs:mdtc
176 static struct dirty_throttle_control *mdtc_gdtc(struct dirty_throttle_control *mdtc) in mdtc_gdtc() argument
178 return mdtc->gdtc; in mdtc_gdtc()
230 static struct dirty_throttle_control *mdtc_gdtc(struct dirty_throttle_control *mdtc) in mdtc_gdtc() argument
853 static void mdtc_calc_avail(struct dirty_throttle_control *mdtc, in mdtc_calc_avail() argument
856 struct dirty_throttle_control *gdtc = mdtc_gdtc(mdtc); in mdtc_calc_avail()
857 unsigned long clean = filepages - min(filepages, mdtc->dirty); in mdtc_calc_avail()
861 mdtc->avail = filepages + min(headroom, other_clean); in mdtc_calc_avail()
953 struct dirty_throttle_control mdtc = { MDTC_INIT(wb, &gdtc) }; in cgwb_calc_thresh() local
956 domain_dirty_avail(&mdtc, true); in cgwb_calc_thresh()
957 domain_dirty_limits(&mdtc); in cgwb_calc_thresh()
959 return __wb_calc_thresh(&mdtc, mdtc.thresh); in cgwb_calc_thresh()
1510 struct dirty_throttle_control *mdtc, in __wb_update_bandwidth() argument
1539 if (IS_ENABLED(CONFIG_CGROUP_WRITEBACK) && mdtc) { in __wb_update_bandwidth()
1540 domain_update_dirty_limit(mdtc, now); in __wb_update_bandwidth()
1541 wb_update_dirty_ratelimit(mdtc, dirtied, elapsed); in __wb_update_bandwidth()
1836 struct dirty_throttle_control * const mdtc = mdtc_valid(&mdtc_stor) ? in balance_dirty_pages() local
1858 if (mdtc) { in balance_dirty_pages()
1863 balance_domain_limits(mdtc, strictlimit); in balance_dirty_pages()
1883 if (gdtc->freerun && (!mdtc || mdtc->freerun)) { in balance_dirty_pages()
1893 if (mdtc) in balance_dirty_pages()
1894 m_intv = domain_poll_intv(mdtc, strictlimit); in balance_dirty_pages()
1914 if (mdtc) { in balance_dirty_pages()
1921 balance_wb_limits(mdtc, strictlimit); in balance_dirty_pages()
1922 if (mdtc->freerun) in balance_dirty_pages()
1924 if (mdtc->pos_ratio < gdtc->pos_ratio) in balance_dirty_pages()
1925 sdtc = mdtc; in balance_dirty_pages()
1929 (mdtc && mdtc->dirty_exceeded); in balance_dirty_pages()
1932 __wb_update_bandwidth(gdtc, mdtc, true); in balance_dirty_pages()
2191 struct dirty_throttle_control mdtc = { MDTC_INIT(wb, &gdtc) }; in wb_over_bg_thresh() local
2196 if (mdtc_valid(&mdtc)) in wb_over_bg_thresh()
2197 return domain_over_bg_thresh(&mdtc); in wb_over_bg_thresh()