aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 50f3bba68a25..1e824a3ec538 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2105,7 +2105,7 @@ static void mpage_put_bnr_to_bhs(struct mpage_da_data *mpd,
2105 } while ((bh = bh->b_this_page) != head); 2105 } while ((bh = bh->b_this_page) != head);
2106 2106
2107 do { 2107 do {
2108 if (cur_logical >= map->m_lblk + blocks) 2108 if (cur_logical > map->m_lblk + (blocks - 1))
2109 break; 2109 break;
2110 2110
2111 if (buffer_delay(bh) || buffer_unwritten(bh)) { 2111 if (buffer_delay(bh) || buffer_unwritten(bh)) {