Commit 5ab18570 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: should not truncate any inline_dentry

If the inode has inline_dentry, we should not truncate any block indices.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 38594de7
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment