diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-07-24 11:12:06 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-08-01 01:48:31 +0200 |
commit | a6d3a479ae082173c6102eba0e502cc439dacf21 (patch) | |
tree | 78142b6c3b974d8184fb17657a7a7a2e56b765b7 /fs/f2fs/namei.c | |
parent | f2fs: enhance on-disk inode structure scalability (diff) | |
download | linux-a6d3a479ae082173c6102eba0e502cc439dacf21.tar.xz linux-a6d3a479ae082173c6102eba0e502cc439dacf21.zip |
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 '')
-rw-r--r-- | fs/f2fs/namei.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 26b4d2b54812..98e13f123d87 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -266,6 +266,10 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) return 0; } + err = dquot_initialize(dir); + if (err) + return err; + f2fs_balance_fs(sbi, true); f2fs_lock_op(sbi); |