Skip to contentSkip to conversation

f2fs: remove redundant set_page_dirty()

PATCH New Yunlei He 1 participant 1 message Feb 27, 2017 F2FS file system

lore
Share & tools
lore

Yunlei He

author
#0 lore raw

PATCH 1/1 f2fs: remove redundant set_page_dirty()

This patch remove redundant set_page_dirty in truncate_blocks

---
 fs/f2fs/file.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/file.c +1 -2
index 36c1565..c6ca00c 100644
@@ -567,8 +567,7 @@ int truncate_blocks(struct inode *inode, u64 from, bool lock)
 	}
 
 	if (f2fs_has_inline_data(inode)) {
-		if (truncate_inline_inode(ipage, from))
-			set_page_dirty(ipage);
+		truncate_inline_inode(ipage, from);
 		if (from == 0)
 			clear_inode_flag(inode, FI_DATA_EXIST);
 		f2fs_put_page(ipage, 1);
Signature · 6 lines
2.10.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot