diff options
-rw-r--r-- | mm/page-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 6106a5c7ed44..3c84128596ba 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -1079,7 +1079,7 @@ continue_unlock: | |||
1079 | pagevec_release(&pvec); | 1079 | pagevec_release(&pvec); |
1080 | cond_resched(); | 1080 | cond_resched(); |
1081 | } | 1081 | } |
1082 | if (!cycled) { | 1082 | if (!cycled && !done) { |
1083 | /* | 1083 | /* |
1084 | * range_cyclic: | 1084 | * range_cyclic: |
1085 | * We hit the last page and there is more work to be done: wrap | 1085 | * We hit the last page and there is more work to be done: wrap |