Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1297801 > unrolled thread

[PATCH 1/5] f2fs: add missing f2fs_balance_fs in __recover_dot_dentries

Started byChao Yu <chao2.yu@samsung.com>
First post2015-12-24 11:10 +0100
Last post2015-12-24 11:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/5] f2fs: add missing f2fs_balance_fs in __recover_dot_dentries Chao Yu <chao2.yu@samsung.com> - 2015-12-24 11:10 +0100

#1297801 — [PATCH 1/5] f2fs: add missing f2fs_balance_fs in __recover_dot_dentries

FromChao Yu <chao2.yu@samsung.com>
Date2015-12-24 11:10 +0100
Subject[PATCH 1/5] f2fs: add missing f2fs_balance_fs in __recover_dot_dentries
Message-ID<qJb0m-5q6-7@gated-at.bofh.it>
__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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web