diff options
author | Yunlei He <heyunlei@huawei.com> | 2017-02-27 18:59:53 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-27 10:40:11 -0800 |
commit | 4fcf589ad44e50cbe60dea19320d9e71d1a10f22 (patch) | |
tree | 576c0b1c4ce7e2ddd3d6d39ce85aae7498e038e2 /fs | |
parent | a3ebfe4fd89794df8b2f357ac5f665052e74b4f9 (diff) | |
download | op-kernel-dev-4fcf589ad44e50cbe60dea19320d9e71d1a10f22.zip op-kernel-dev-4fcf589ad44e50cbe60dea19320d9e71d1a10f22.tar.gz |
f2fs: remove redundant set_page_dirty()
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 36c1565..c6ca00c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -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); |