diff options
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index eb59f7eea508..7e39ffceb566 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -41,6 +41,8 @@ | |||
41 | 41 | ||
42 | #include "internal.h" | 42 | #include "internal.h" |
43 | 43 | ||
44 | #include <litmus/litmus.h> /* for is_realtime() */ | ||
45 | |||
44 | /* | 46 | /* |
45 | * Sleep at most 200ms at a time in balance_dirty_pages(). | 47 | * Sleep at most 200ms at a time in balance_dirty_pages(). |
46 | */ | 48 | */ |
@@ -279,7 +281,7 @@ void global_dirty_limits(unsigned long *pbackground, unsigned long *pdirty) | |||
279 | if (background >= dirty) | 281 | if (background >= dirty) |
280 | background = dirty / 2; | 282 | background = dirty / 2; |
281 | tsk = current; | 283 | tsk = current; |
282 | if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk)) { | 284 | if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk) || is_realtime(tsk)) { |
283 | background += background / 4; | 285 | background += background / 4; |
284 | dirty += dirty / 4; | 286 | dirty += dirty / 4; |
285 | } | 287 | } |
@@ -307,7 +309,7 @@ static unsigned long zone_dirty_limit(struct zone *zone) | |||
307 | else | 309 | else |
308 | dirty = vm_dirty_ratio * zone_memory / 100; | 310 | dirty = vm_dirty_ratio * zone_memory / 100; |
309 | 311 | ||
310 | if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk)) | 312 | if (tsk->flags & PF_LESS_THROTTLE || rt_task(tsk) || is_realtime(tsk)) |
311 | dirty += dirty / 4; | 313 | dirty += dirty / 4; |
312 | 314 | ||
313 | return dirty; | 315 | return dirty; |