Skip to contentSkip to conversation

f2fs: drop duplicate new_size assign in f2fs_zero_range

PATCH New Kinglong Mee 1 participant 1 message Mar 10, 2017 1 message not in the archive F2FS file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/4 f2fs: drop duplicate new_size assign in f2fs_zero_range

---
 fs/f2fs/file.c | 2 --
 1 file changed, 2 deletions(-)
fs/f2fs/file.c +0 -2
index 8c7923f..5f8d600 100644
@@ -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) {
Signature · 9 lines
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