1
0
Fork 0

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>
hifive-unleashed-5.1
Jaegeuk Kim 2014-10-16 12:24:14 -07:00
parent 38594de767
commit 5ab18570b8
1 changed files with 1 additions and 1 deletions

View File

@ -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)