aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/page-writeback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 91d73ef1744d..35ca7102d421 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -1075,13 +1075,13 @@ static void bdi_update_dirty_ratelimit(struct backing_dev_info *bdi,
1075 } 1075 }
1076 1076
1077 if (dirty < setpoint) { 1077 if (dirty < setpoint) {
1078 x = min(bdi->balanced_dirty_ratelimit, 1078 x = min3(bdi->balanced_dirty_ratelimit,
1079 min(balanced_dirty_ratelimit, task_ratelimit)); 1079 balanced_dirty_ratelimit, task_ratelimit);
1080 if (dirty_ratelimit < x) 1080 if (dirty_ratelimit < x)
1081 step = x - dirty_ratelimit; 1081 step = x - dirty_ratelimit;
1082 } else { 1082 } else {
1083 x = max(bdi->balanced_dirty_ratelimit, 1083 x = max3(bdi->balanced_dirty_ratelimit,
1084 max(balanced_dirty_ratelimit, task_ratelimit)); 1084 balanced_dirty_ratelimit, task_ratelimit);
1085 if (dirty_ratelimit > x) 1085 if (dirty_ratelimit > x)
1086 step = dirty_ratelimit - x; 1086 step = dirty_ratelimit - x;
1087 } 1087 }