From: Kinglong Mee Date: Fri, 10 Mar 2017 09:54:03 +0000 (+0800) Subject: f2fs: drop duplicate new_size assign in f2fs_zero_range X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=087d3d8bae58415d9996ea5936d9738f881cd156;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git f2fs: drop duplicate new_size assign in f2fs_zero_range Signed-off-by: Kinglong Mee Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index af507585c75b..c3c475675d77 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -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) {