summaryrefslogtreecommitdiff
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-10-16 12:24:14 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-11-03 16:07:34 -0800
commit5ab18570b85cf3071875a36b88bc5ed27d0b6ef7 (patch)
treee53cb8ff459c9292ccda732eb98b25374764f3dd /fs/f2fs/file.c
parent38594de767b32db62b7213631772d050690d3803 (diff)
f2fs: should not truncate any inline_dentry
If the inode has inline_dentry, we should not truncate any block indices. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index d054e0ebfe24..402e38185b8c 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -471,7 +471,7 @@ int truncate_blocks(struct inode *inode, u64 from, bool lock)
trace_f2fs_truncate_blocks_enter(inode, from);
- if (f2fs_has_inline_data(inode))
+ if (f2fs_has_inline_data(inode) || f2fs_has_inline_dentry(inode))
goto done;
free_from = (pgoff_t)