Lines Matching refs:bg_thresh
135 unsigned long bg_thresh; /* dirty background threshold */
379 * domain_dirty_limits - calculate thresh and bg_thresh for a wb_domain
382 * Calculate @dtc->thresh and ->bg_thresh considering
397 unsigned long bg_thresh;
426 bg_thresh = DIV_ROUND_UP(bg_bytes, PAGE_SIZE);
428 bg_thresh = (bg_ratio * available_memory) / PAGE_SIZE;
432 bg_thresh += bg_thresh / 4 + global_wb_domain.dirty_limit / 32;
441 /* This makes sure bg_thresh is within 32-bits as well */
442 if (bg_thresh >= thresh)
443 bg_thresh = thresh / 2;
445 dtc->bg_thresh = bg_thresh;
449 trace_global_dirty_state(bg_thresh, thresh);
454 * @pbackground: out parameter for bg_thresh
457 * Calculate bg_thresh and thresh for global_wb_domain. See
467 *pbackground = gdtc.bg_thresh;
728 unsigned long bg_thresh)
730 return (thresh + bg_thresh) / 2;
919 unsigned long freerun = dirty_freerun_ceiling(dtc->thresh, dtc->bg_thresh);
957 * wb_calc_thresh(wb, bg_thresh) is about ~4K pages. wb_setpoint is
1204 unsigned long freerun = dirty_freerun_ceiling(dtc->thresh, dtc->bg_thresh);
1544 div64_u64(dtc->wb_thresh * dtc->bg_thresh, dtc->thresh) : 0;
1596 unsigned long dirty, thresh, bg_thresh;
1612 bg_thresh = gdtc->wb_bg_thresh;
1616 bg_thresh = gdtc->bg_thresh;
1641 m_bg_thresh = mdtc->bg_thresh;
1657 if (dirty <= dirty_freerun_ceiling(thresh, bg_thresh) &&
1771 sdtc->bg_thresh,
1800 sdtc->bg_thresh,
1859 if (nr_reclaimable > gdtc->bg_thresh)
1974 if (gdtc->dirty > gdtc->bg_thresh)
1978 wb_calc_thresh(gdtc->wb, gdtc->bg_thresh))
1989 if (mdtc->dirty > mdtc->bg_thresh)
1993 wb_calc_thresh(mdtc->wb, mdtc->bg_thresh))