Skip to contentSkip to conversation

f2fs: add missing f2fs_balance_fs in __recover_dot_dentries

PATCH In review Chao Yu 1 participant 1 message Dec 24, 2015 F2FS file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/5 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.

---
 fs/f2fs/namei.c | 2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/namei.c +2 -0
index e439f32..fb41c80 100644
@@ -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);
Signature · 5 lines
2.6.3



------------------------------------------------------------------------------