From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Yu Subject: Re: [PATCH 1/5] f2fs: do not set free of current section Date: Fri, 13 Jul 2018 11:10:32 +0800 Message-ID: <4a70ce4c-5fad-a550-4fa4-3a09bb76e37f@huawei.com> References: <1531408170-45758-1-git-send-email-yunlong.song@huawei.com> <1531408170-45758-2-git-send-email-yunlong.song@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-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fdoTr-0000OP-Lo for linux-f2fs-devel@lists.sourceforge.net; Fri, 13 Jul 2018 03:10:51 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1fdoTp-0029ec-KE for linux-f2fs-devel@lists.sourceforge.net; Fri, 13 Jul 2018 03:10:51 +0000 In-Reply-To: <1531408170-45758-2-git-send-email-yunlong.song@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: Yunlong Song , jaegeuk@kernel.org, chao@kernel.org, yunlong.song@icloud.com Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, miaoxie@huawei.com On 2018/7/12 23:09, Yunlong Song wrote: > For the case when sbi->segs_per_sec > 1, take section:segment = 5 for > example, if segment 1 is just used and allocate new segment 2, and the > blocks of segment 1 is invalidated, at this time, the previous code will > use __set_test_and_free to free the free_secmap and free_sections++, > this is not correct since it is still a current section, so fix it. > > Signed-off-by: Yunlong Song 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