From: Jaegeuk Kim Date: Thu, 16 Oct 2014 19:24:14 +0000 (-0700) Subject: f2fs: should not truncate any inline_dentry X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5ab18570b85cf3071875a36b88bc5ed27d0b6ef7;p=linux-beck.git 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 --- 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)