From: Chao Yu Subject: Re: [PATCH] f2fs: remove unused cp_blkaddr in f2fs_sanity_check_ckpt Date: Wed, 1 Aug 2018 14:54:44 +0800 Message-ID: References: <20180731052152.64939-1-zhengjunling@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 1fkl28-0007dP-83 for linux-f2fs-devel@lists.sourceforge.net; Wed, 01 Aug 2018 06:54:56 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1fkl25-004Rri-UC for linux-f2fs-devel@lists.sourceforge.net; Wed, 01 Aug 2018 06:54:56 +0000 In-Reply-To: <20180731052152.64939-1-zhengjunling@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: Junling Zheng , jaegeuk@kernel.org Cc: miaoxie@huawei.com, linux-f2fs-devel@lists.sourceforge.net Hi Junling, On 2018/7/31 13:21, Junling Zheng wrote: > Remove unused cp_blkaddr in f2fs_sanity_check_ckpt(). Since this issue is introduced by recent change, and the related patch has not been upstreamed yet, can we merge this into that patch, if you don't mind? Thanks, > > Signed-off-by: Junling Zheng > --- > fs/f2fs/super.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c > index d56bc6eb8760..6ee003e87f63 100644 > --- a/fs/f2fs/super.c > +++ b/fs/f2fs/super.c > @@ -2297,7 +2297,7 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) > unsigned int sit_bitmap_size, nat_bitmap_size; > unsigned int log_blocks_per_seg; > unsigned int segment_count_main; > - unsigned int cp_pack_start_sum, cp_blkaddr, cp_payload; > + unsigned int cp_pack_start_sum, cp_payload; > block_t user_block_count; > int i; > > @@ -2359,7 +2359,6 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) > } > > cp_pack_start_sum = __start_sum_addr(sbi); > - cp_blkaddr = __start_cp_addr(sbi); > cp_payload = __cp_payload(sbi); > if (cp_pack_start_sum < cp_payload + 1 || > cp_pack_start_sum > blocks_per_seg - 1 - > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot