Lines Matching refs:bg_thresh
135 unsigned long bg_thresh; /* dirty background threshold */
367 * domain_dirty_limits - calculate thresh and bg_thresh for a wb_domain
370 * Calculate @dtc->thresh and ->bg_thresh considering
385 unsigned long bg_thresh;
414 bg_thresh = DIV_ROUND_UP(bg_bytes, PAGE_SIZE);
416 bg_thresh = (bg_ratio * available_memory) / PAGE_SIZE;
418 if (bg_thresh >= thresh)
419 bg_thresh = thresh / 2;
422 bg_thresh += bg_thresh / 4 + global_wb_domain.dirty_limit / 32;
426 dtc->bg_thresh = bg_thresh;
430 trace_global_dirty_state(bg_thresh, thresh);
435 * @pbackground: out parameter for bg_thresh
438 * Calculate bg_thresh and thresh for global_wb_domain. See
448 *pbackground = gdtc.bg_thresh;
814 unsigned long bg_thresh)
816 return (thresh + bg_thresh) / 2;
1005 unsigned long freerun = dirty_freerun_ceiling(dtc->thresh, dtc->bg_thresh);
1043 * wb_calc_thresh(wb, bg_thresh) is about ~4K pages. wb_setpoint is
1290 unsigned long freerun = dirty_freerun_ceiling(dtc->thresh, dtc->bg_thresh);
1641 div64_u64(dtc->wb_thresh * dtc->bg_thresh, dtc->thresh) : 0;
1694 unsigned long dirty, thresh, bg_thresh;
1710 bg_thresh = gdtc->wb_bg_thresh;
1714 bg_thresh = gdtc->bg_thresh;
1739 m_bg_thresh = mdtc->bg_thresh;
1752 if (!laptop_mode && nr_reclaimable > gdtc->bg_thresh &&
1768 if (dirty <= dirty_freerun_ceiling(thresh, bg_thresh) &&
1880 sdtc->bg_thresh,
1909 sdtc->bg_thresh,
2095 if (gdtc->dirty > gdtc->bg_thresh)
2098 thresh = wb_calc_thresh(gdtc->wb, gdtc->bg_thresh);
2115 if (mdtc->dirty > mdtc->bg_thresh)
2118 thresh = wb_calc_thresh(mdtc->wb, mdtc->bg_thresh);