diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 294e71576cec973ffed0c28ca3760e58df121504..5fac4f259965167f1344ec2ba4e2ca8f1c556630 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1686,7 +1686,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi, /* writeback all dirty pages in the range */ err = filemap_write_and_wait_range(inode->i_mapping, range->start, - range->start + range->len); + range->start + range->len - 1); if (err) goto out;