aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r--mm/page-writeback.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index e7095030aa1f..586f31261c83 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -433,11 +433,8 @@ static void domain_dirty_limits(struct dirty_throttle_control *dtc)
433 else 433 else
434 bg_thresh = (bg_ratio * available_memory) / PAGE_SIZE; 434 bg_thresh = (bg_ratio * available_memory) / PAGE_SIZE;
435 435
436 if (unlikely(bg_thresh >= thresh)) { 436 if (bg_thresh >= thresh)
437 pr_warn("vm direct limit must be set greater than background limit.\n");
438 bg_thresh = thresh / 2; 437 bg_thresh = thresh / 2;
439 }
440
441 tsk = current; 438 tsk = current;
442 if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk)) { 439 if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk)) {
443 bg_thresh += bg_thresh / 4 + global_wb_domain.dirty_limit / 32; 440 bg_thresh += bg_thresh / 4 + global_wb_domain.dirty_limit / 32;