aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-07-24 17:12:06 +0800
committerMister Oyster <oysterized@gmail.com>2017-10-04 15:23:29 +0200
commit54010e63d33e00627c1062e2fe2946850e9dead3 (patch)
tree0d8b849b7975504e04204b32934149bc142f6a08 /fs
parent2aaa4f834378148b080bd22d763d4a8afc24d692 (diff)
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 <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/namei.c2
1 files changed, 2 insertions, 0 deletions
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);