f2fs: enable inline dir handling

Add inline dir functions into normal dir ops' function to handle inline ops.
Besides, we enable inline dir mode when a new dir inode is created if
inline_data option is on.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu
2014-09-24 18:19:10 +08:00
committed by Jaegeuk Kim
parent 201a05be96
commit 622f28ae9b
5 changed files with 58 additions and 15 deletions

View File

@@ -129,7 +129,8 @@ retry:
goto out;
out_unmap_put:
kunmap(page);
if (!f2fs_has_inline_dentry(dir))
kunmap(page);
f2fs_put_page(page, 0);
out_err:
iput(dir);