Skip to content

Commit

Permalink
f2fs: remove redundant set_page_dirty()
Browse files Browse the repository at this point in the history
This patch remove redundant set_page_dirty in truncate_blocks

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
Yunlei He authored and Jaegeuk Kim committed Feb 27, 2017
1 parent a3ebfe4 commit 4fcf589
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4fcf589

Please sign in to comment.