summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-03-10 13:43:20 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2017-03-22 03:34:31 +0100
commitbd4667cb4b77f02a16dd14443ba66884d755c7e6 (patch)
treed41760e460e29c04521b9ab13502bf28b9dfb1f8 /fs/f2fs/file.c
parentf2fs: move mnt_want_write_file after arguments checking (diff)
downloadlinux-bd4667cb4b77f02a16dd14443ba66884d755c7e6.tar.xz
linux-bd4667cb4b77f02a16dd14443ba66884d755c7e6.zip
f2fs: clear FI_DATA_EXIST flag in truncate_inline_inode
Clear FI_DATA_EXIST flag atomically in truncate_inline_inode, and the return value from truncate_inline_inode isn't used, remove it. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 22c73b205cd7..77ebd6b9323c 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -569,9 +569,7 @@ int truncate_blocks(struct inode *inode, u64 from, bool lock)
}
if (f2fs_has_inline_data(inode)) {
- truncate_inline_inode(ipage, from);
- if (from == 0)
- clear_inode_flag(inode, FI_DATA_EXIST);
+ truncate_inline_inode(inode, ipage, from);
f2fs_put_page(ipage, 1);
truncate_page = true;
goto out;