summaryrefslogtreecommitdiff
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-09-24 18:19:10 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2014-11-03 16:07:32 -0800
commit622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce (patch)
treeb91404e9b6f9061fb0ab2b31cff1799bd71e7c52 /fs/f2fs/recovery.c
parent201a05be9628ae58efe7638e0c7ae3937ec85273 (diff)
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>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r--fs/f2fs/recovery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index 843da53ed7d5..4b180bbc3a21 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -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);