]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: record quota during dot{,dot} recovery
authorChao Yu <yuchao0@huawei.com>
Mon, 24 Jul 2017 09:12:06 +0000 (17:12 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 31 Jul 2017 23:48:31 +0000 (16:48 -0700)
commit196648decf0ba0c46fb4f79e6b35be03a604b53c
tree78142b6c3b974d8184fb17657a7a7a2e56b765b7
parent960aae58f41fe7df6a2e9e66100487fb6b8992cc
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>
fs/f2fs/namei.c