fsck.f2fs: init quota_file before re-create quota file
authorSheng Yong <shengyong1@huawei.com>
Thu, 12 Jul 2018 03:36:41 +0000 (11:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 28 Aug 2018 06:49:26 +0000 (23:49 -0700)
commite64292caeb910289daa09fbd44e6f510339587f2
tree190103e34b7287b127401dfb0d10afd7feb4b157
parentee0cb1c45e8f5f3ea388bdc477bb50ed4c934833
fsck.f2fs: init quota_file before re-create quota file

`quota_handle->qh_qf->filesize' is not initialized by quota_create_file().
It contains random value, which is updated to quota file's i_size in
quota_file_close(). Since quota file is re-created, `filesize' can be
initialized as 0.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/quotaio.c