Lines Matching full:thresh
115 unsigned long thresh) in hmdfs_ratio_thresh() argument
117 unsigned long ret = (ratio * thresh) >> HMDFS_LIMIT_SHIFT; in hmdfs_ratio_thresh()
123 unsigned long thresh) in hmdfs_thresh_ratio() argument
125 unsigned long ratio = (base << HMDFS_LIMIT_SHIFT) / thresh; in hmdfs_thresh_ratio()
160 * Init thresh according the previous bandwidth adjusted thresh, in hmdfs_init_dirty_limit()
161 * thresh should be no more than setting thresh. in hmdfs_init_dirty_limit()
174 * The thresh should be updated in the first time of dirty pages in hmdfs_init_dirty_limit()
186 unsigned long thresh; in hmdfs_update_dirty_limit() local
202 * offline, there is meaningless to set such a lower thresh. in hmdfs_update_dirty_limit()
205 thresh = bw * time_limit / roundup_pow_of_two(HZ); in hmdfs_update_dirty_limit()
206 if (thresh >= hwb->dirty_fs_thresh) { in hmdfs_update_dirty_limit()
212 /* Adjust thresh according to current bandwidth */ in hmdfs_update_dirty_limit()
213 hdtc->fs_thresh = thresh; in hmdfs_update_dirty_limit()
221 /* Save bandwidth adjusted thresh */ in hmdfs_update_dirty_limit()
234 /* hdtc.file_bg_thresh should be the lowest thresh */ in hmdfs_update_ratelimit()
273 unsigned long thresh) in hmdfs_dirty_intv() argument
275 if (thresh > dirty) in hmdfs_dirty_intv()
276 return 1UL << (ilog2(thresh - dirty) >> 1); in hmdfs_dirty_intv()
346 * thresh according to current bandwidth. Update bandwidth in hmdfs_balance_dirty_pages()