* [PATCH 1/5] f2fs: add missing f2fs_balance_fs in __recover_dot_dentries
@ 2015-12-24 10:03 Chao Yu
0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2015-12-24 10:03 UTC (permalink / raw)
To: Jaegeuk Kim; +Cc: linux-f2fs-devel, linux-kernel
__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>
---
fs/f2fs/namei.c | 2 ++
1 file changed, 2 insertions(+)
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);
--
2.6.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-24 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-24 10:03 [PATCH 1/5] f2fs: add missing f2fs_balance_fs in __recover_dot_dentries Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox