From 54010e63d33e00627c1062e2fe2946850e9dead3 Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Mon, 24 Jul 2017 17:12:06 +0800 Subject: f2fs: record quota during dot{,dot} recovery In ->lookup(), we will have a try to recover dot or dotdot for corrupted directory, once disk quota is on, if it allocates new block during dotdot recovery, we need to record disk quota info for the allocation, so this patch fixes this issue by adding missing dquot_initialize() in __recover_dot_dentries. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 29852bfa7..e97b15a5b 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -261,6 +261,8 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) return 0; } + dquot_initialize(dir); + f2fs_balance_fs(sbi, true); f2fs_lock_op(sbi); -- cgit v1.2.3