summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-12-24 18:03:29 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-30 10:14:14 -0800
commitd53841740fd7feec170339203b198020ff100c58 (patch)
tree5ed5370378ad7f66cdce83eb4c4d733397bd3604 /fs/f2fs
parent06d6f2263913029ccd6199fd10e7dca525d348b1 (diff)
downloadop-kernel-dev-d53841740fd7feec170339203b198020ff100c58.zip
op-kernel-dev-d53841740fd7feec170339203b198020ff100c58.tar.gz
f2fs: add missing f2fs_balance_fs in __recover_dot_dentries
__recover_do_dentries will try to grab free space in storage, so fix to add missing f2fs_balance_fs here. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/namei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index e439f32..fb41c80 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -214,6 +214,8 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino)
struct page *page;
int err = 0;
+ f2fs_balance_fs(sbi);
+
f2fs_lock_op(sbi);
de = f2fs_find_entry(dir, &dot, &page);
OpenPOWER on IntegriCloud