projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a6aa32
)
f2fs: drop duplicate new_size assign in f2fs_zero_range
author
Kinglong Mee
<kinglongmee@gmail.com>
Fri, 10 Mar 2017 09:54:03 +0000
(17:54 +0800)
committer
Jaegeuk 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
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index
af50758
..
c3c4756
100644
(file)
--- 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) {