Lines Matching full:thresh
139 unsigned long thresh) in hmdfs_ratio_thresh() argument
141 unsigned long ret = (ratio * thresh) >> HMDFS_LIMIT_SHIFT; in hmdfs_ratio_thresh()
147 unsigned long thresh) in hmdfs_thresh_ratio() argument
149 unsigned long ratio = (base << HMDFS_LIMIT_SHIFT) / thresh; in hmdfs_thresh_ratio()
184 * Init thresh according the previous bandwidth adjusted thresh, in hmdfs_init_dirty_limit()
185 * thresh should be no more than setting thresh. in hmdfs_init_dirty_limit()
198 * The thresh should be updated in the first time of dirty pages in hmdfs_init_dirty_limit()
210 unsigned long thresh; in hmdfs_update_dirty_limit() local
226 * offline, there is meaningless to set such a lower thresh. in hmdfs_update_dirty_limit()
229 thresh = bw * time_limit / roundup_pow_of_two(HZ); in hmdfs_update_dirty_limit()
230 if (thresh >= hwb->dirty_fs_thresh) { in hmdfs_update_dirty_limit()
236 /* Adjust thresh according to current bandwidth */ in hmdfs_update_dirty_limit()
237 hdtc->fs_thresh = thresh; in hmdfs_update_dirty_limit()
245 /* Save bandwidth adjusted thresh */ in hmdfs_update_dirty_limit()
258 /* hdtc.file_bg_thresh should be the lowest thresh */ in hmdfs_update_ratelimit()
297 unsigned long thresh) in hmdfs_dirty_intv() argument
299 if (thresh > dirty) in hmdfs_dirty_intv()
300 return 1UL << (ilog2(thresh - dirty) >> 1); in hmdfs_dirty_intv()
370 * thresh according to current bandwidth. Update bandwidth in hmdfs_balance_dirty_pages()