diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-10-16 21:24:14 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-04 01:07:34 +0100 |
commit | 5ab18570b85cf3071875a36b88bc5ed27d0b6ef7 (patch) | |
tree | e53cb8ff459c9292ccda732eb98b25374764f3dd /fs/f2fs/file.c | |
parent | f2fs: reuse core function in f2fs_readdir for inline_dentry (diff) | |
download | linux-5ab18570b85cf3071875a36b88bc5ed27d0b6ef7.tar.xz linux-5ab18570b85cf3071875a36b88bc5ed27d0b6ef7.zip |
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.c | 2 |
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) |