From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Yu Subject: Re: [PATCH] fsck.f2fs: init quota_file before re-create quota file Date: Thu, 12 Jul 2018 17:45:50 +0800 Message-ID: References: <20180712033641.142398-1-shengyong1@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fdYAq-0002He-Uq for linux-f2fs-devel@lists.sourceforge.net; Thu, 12 Jul 2018 09:46:08 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1fdYAo-006HzJ-W5 for linux-f2fs-devel@lists.sourceforge.net; Thu, 12 Jul 2018 09:46:08 +0000 In-Reply-To: <20180712033641.142398-1-shengyong1@huawei.com> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Sheng Yong , jaegeuk@kernel.org Cc: miaoxie@huawei.com, linux-f2fs-devel@lists.sourceforge.net On 2018/7/12 11:36, Sheng Yong wrote: > `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 Reviewed-by: Chao Yu Thanks, ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot