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>
This commit is contained in:
Chao Yu 2015-12-24 18:03:29 +08:00 committed by Jaegeuk Kim
parent 06d6f22639
commit d53841740f
1 changed files with 2 additions and 0 deletions

View File

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