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