f2fs: drop duplicate new_size assign in f2fs_zero_range
authorKinglong Mee <kinglongmee@gmail.com>
Fri, 10 Mar 2017 09:54:03 +0000 (17:54 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Mar 2017 02:34:28 +0000 (22:34 -0400)
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c

index af50758..c3c4756 100644 (file)
@@ -1197,8 +1197,6 @@ static int f2fs_zero_range(struct inode *inode, loff_t offset, loff_t len,
                if (ret)
                        return ret;
 
-               if (offset + len > new_size)
-                       new_size = offset + len;
                new_size = max_t(loff_t, new_size, offset + len);
        } else {
                if (off_start) {