summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorYunlei He <heyunlei@huawei.com>2017-02-27 18:59:53 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 10:40:11 -0800
commit4fcf589ad44e50cbe60dea19320d9e71d1a10f22 (patch)
tree576c0b1c4ce7e2ddd3d6d39ce85aae7498e038e2 /fs/f2fs
parenta3ebfe4fd89794df8b2f357ac5f665052e74b4f9 (diff)
downloadlinux-stable-4fcf589ad44e50cbe60dea19320d9e71d1a10f22.tar.gz
linux-stable-4fcf589ad44e50cbe60dea19320d9e71d1a10f22.tar.bz2
linux-stable-4fcf589ad44e50cbe60dea19320d9e71d1a10f22.zip
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/f2fs')
-rw-r--r--fs/f2fs/file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 36c156557bb1..c6ca00c87265 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);