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