aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 4b8debeb3965..d88ba4a9effa 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -1207,8 +1207,10 @@ static pgoff_t ext4_num_dirty_pages(struct inode *inode, pgoff_t idx,
1207 break; 1207 break;
1208 idx++; 1208 idx++;
1209 num++; 1209 num++;
1210 if (num >= max_pages) 1210 if (num >= max_pages) {
1211 done = 1;
1211 break; 1212 break;
1213 }
1212 } 1214 }
1213 pagevec_release(&pvec); 1215 pagevec_release(&pvec);
1214 } 1216 }