Signed-off-by: Kinglong Mee <[email protected]>
---
 fs/f2fs/file.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 8c7923f..5f8d600 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1189,8 +1189,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) {
-- 
2.9.3


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to