From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0A54C433EF for ; Tue, 3 May 2022 20:05:54 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-456-uw_vMWy_POy4owvDgDGNlQ-1; Tue, 03 May 2022 16:05:05 -0400 X-MC-Unique: uw_vMWy_POy4owvDgDGNlQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7F5D429AB3E2; Tue, 3 May 2022 20:05:02 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E23240D2820; Tue, 3 May 2022 20:05:01 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D1F281947049; Tue, 3 May 2022 20:05:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0A2E81947043 for ; Tue, 3 May 2022 20:04:59 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EEDDB5517C8; Tue, 3 May 2022 20:04:58 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EAFF855119C for ; Tue, 3 May 2022 20:04:58 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D3BD8811E76 for ; Tue, 3 May 2022 20:04:58 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-114-HFW9IQfhMU-Wpu5-B_as_A-1; Tue, 03 May 2022 16:04:13 -0400 X-MC-Unique: HFW9IQfhMU-Wpu5-B_as_A-1 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3137CB82061; Tue, 3 May 2022 20:04:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F65C385A4; Tue, 3 May 2022 20:04:10 +0000 (UTC) Date: Tue, 3 May 2022 13:04:08 -0700 From: Jaegeuk Kim To: Pankaj Raghav Message-ID: References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-15-p.raghav@samsung.com> MIME-Version: 1.0 In-Reply-To: <20220427160255.300418-15-p.raghav@samsung.com> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Subject: Re: [dm-devel] [PATCH 14/16] f2fs: call bdev_zone_sectors() only once on init_blkz_info() X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jiangbo.365@bytedance.com, linux-nvme@lists.infradead.org, clm@fb.com, dm-devel@redhat.com, hch@lst.de, agk@redhat.com, naohiro.aota@wdc.com, sagi@grimberg.me, gost.dev@samsung.com, damien.lemoal@opensource.wdc.com, jonathan.derrick@linux.dev, kch@nvidia.com, chao@kernel.org, snitzer@kernel.org, josef@toxicpanda.com, linux-block@vger.kernel.org, dsterba@suse.com, kbusch@kernel.org, matias.bjorling@wdc.com, bvanassche@acm.org, axboe@kernel.dk, johannes.thumshirn@wdc.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, mcgrof@kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org Errors-To: dm-devel-bounces@redhat.com Sender: "dm-devel" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Applied to f2fs tree. Thanks, On 04/27, Pankaj Raghav wrote: > From: Luis Chamberlain > > Instead of calling bdev_zone_sectors() multiple times, call > it once and cache the value locally. This will make the > subsequent change easier to read. > > Signed-off-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > fs/f2fs/super.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c > index ea939db18f88..f64761a15df7 100644 > --- a/fs/f2fs/super.c > +++ b/fs/f2fs/super.c > @@ -3678,22 +3678,25 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi) > struct block_device *bdev = FDEV(devi).bdev; > sector_t nr_sectors = bdev_nr_sectors(bdev); > struct f2fs_report_zones_args rep_zone_arg; > + u64 zone_sectors; > int ret; > > if (!f2fs_sb_has_blkzoned(sbi)) > return 0; > > + zone_sectors = bdev_zone_sectors(bdev); > + > if (sbi->blocks_per_blkz && sbi->blocks_per_blkz != > - SECTOR_TO_BLOCK(bdev_zone_sectors(bdev))) > + SECTOR_TO_BLOCK(zone_sectors)) > return -EINVAL; > - sbi->blocks_per_blkz = SECTOR_TO_BLOCK(bdev_zone_sectors(bdev)); > + sbi->blocks_per_blkz = SECTOR_TO_BLOCK(zone_sectors); > if (sbi->log_blocks_per_blkz && sbi->log_blocks_per_blkz != > __ilog2_u32(sbi->blocks_per_blkz)) > return -EINVAL; > sbi->log_blocks_per_blkz = __ilog2_u32(sbi->blocks_per_blkz); > FDEV(devi).nr_blkz = SECTOR_TO_BLOCK(nr_sectors) >> > sbi->log_blocks_per_blkz; > - if (nr_sectors & (bdev_zone_sectors(bdev) - 1)) > + if (nr_sectors & (zone_sectors - 1)) > FDEV(devi).nr_blkz++; > > FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, > -- > 2.25.1 -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE50BC433FE for ; Tue, 3 May 2022 20:04:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236393AbiECUHr (ORCPT ); Tue, 3 May 2022 16:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236354AbiECUHq (ORCPT ); Tue, 3 May 2022 16:07:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93517403CC; Tue, 3 May 2022 13:04:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3F6BCB82062; Tue, 3 May 2022 20:04:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F65C385A4; Tue, 3 May 2022 20:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651608251; bh=yEwIKUkYrUe+UB4k6sDSTOcJaUQFRLK0s3/p+P/axO8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GI4PqtOAj9PMvq17VbxQwejZWyW9waSFBPKixzYGnlcgVZKbWRTtbDsNIZZwaqgJW oRbRzsBLXIeXqedBxITy5sBQxpsdE8I0dm3cEPiXGUZcnaeNIQ12WIBdr1DNLQll1t +pUS07koL10aaZ31K0ZVF/uLZ+EZZBoxW+DCQadgwgerGjiYcHn3UgSgB4OcJyJiYe i6tehN8h7cCda5ctDbs17t6pRzGracdobePQtcHkfSJEEz+G6rES43RSs+L4zfA7c4 iHfsO8Ek/+4eQNxEj3/7v/WG9g0aL4gDw9K4vOzjBpm1V5OnkKQ8fUIpjm9PDrF8aA kouE3UjVHDJkQ== Date: Tue, 3 May 2022 13:04:08 -0700 From: Jaegeuk Kim To: Pankaj Raghav Cc: axboe@kernel.dk, snitzer@kernel.org, hch@lst.de, mcgrof@kernel.org, naohiro.aota@wdc.com, sagi@grimberg.me, damien.lemoal@opensource.wdc.com, dsterba@suse.com, johannes.thumshirn@wdc.com, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, clm@fb.com, gost.dev@samsung.com, chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, josef@toxicpanda.com, jonathan.derrick@linux.dev, agk@redhat.com, kbusch@kernel.org, kch@nvidia.com, linux-nvme@lists.infradead.org, dm-devel@redhat.com, bvanassche@acm.org, jiangbo.365@bytedance.com, linux-fsdevel@vger.kernel.org, matias.bjorling@wdc.com, linux-block@vger.kernel.org Subject: Re: [PATCH 14/16] f2fs: call bdev_zone_sectors() only once on init_blkz_info() Message-ID: References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-15-p.raghav@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427160255.300418-15-p.raghav@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Applied to f2fs tree. Thanks, On 04/27, Pankaj Raghav wrote: > From: Luis Chamberlain > > Instead of calling bdev_zone_sectors() multiple times, call > it once and cache the value locally. This will make the > subsequent change easier to read. > > Signed-off-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > fs/f2fs/super.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c > index ea939db18f88..f64761a15df7 100644 > --- a/fs/f2fs/super.c > +++ b/fs/f2fs/super.c > @@ -3678,22 +3678,25 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi) > struct block_device *bdev = FDEV(devi).bdev; > sector_t nr_sectors = bdev_nr_sectors(bdev); > struct f2fs_report_zones_args rep_zone_arg; > + u64 zone_sectors; > int ret; > > if (!f2fs_sb_has_blkzoned(sbi)) > return 0; > > + zone_sectors = bdev_zone_sectors(bdev); > + > if (sbi->blocks_per_blkz && sbi->blocks_per_blkz != > - SECTOR_TO_BLOCK(bdev_zone_sectors(bdev))) > + SECTOR_TO_BLOCK(zone_sectors)) > return -EINVAL; > - sbi->blocks_per_blkz = SECTOR_TO_BLOCK(bdev_zone_sectors(bdev)); > + sbi->blocks_per_blkz = SECTOR_TO_BLOCK(zone_sectors); > if (sbi->log_blocks_per_blkz && sbi->log_blocks_per_blkz != > __ilog2_u32(sbi->blocks_per_blkz)) > return -EINVAL; > sbi->log_blocks_per_blkz = __ilog2_u32(sbi->blocks_per_blkz); > FDEV(devi).nr_blkz = SECTOR_TO_BLOCK(nr_sectors) >> > sbi->log_blocks_per_blkz; > - if (nr_sectors & (bdev_zone_sectors(bdev) - 1)) > + if (nr_sectors & (zone_sectors - 1)) > FDEV(devi).nr_blkz++; > > FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, > -- > 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B093C433FE for ; Tue, 3 May 2022 20:04:26 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nlykx-0003iM-9X; Tue, 03 May 2022 20:04:23 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nlykw-0003h9-Lu for linux-f2fs-devel@lists.sourceforge.net; Tue, 03 May 2022 20:04:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mbnLZXvmjiUydw6XV2zP4n7v0/cS2cpfMEj9/h01KLs=; b=ZuUXHAZrhljMygrinx3ozxNk+j QCN//V8Hbpy37Xsd8oP/b34TwcsTVWm/25N7c9CwNCGPHUgRPOoqwNGLf93bAPy4+D89mCdr/r39e eR6uYC77YQXLEQ6H/I5DlIKZ8PvdwVtL90q2fSl/Dak3Mf7QvItGWpq3BhRhBb/AUlO0=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mbnLZXvmjiUydw6XV2zP4n7v0/cS2cpfMEj9/h01KLs=; b=XYTiXIl0owEHQ5M3w5GG0rb+sS N+MNXAJSStafQttnmX0TONKMXJAp5wlO87VaQ00eGwchB4+O0m/7EtKZ6bYRTxCe7yXMClcWnCa6N NaiXGD/9g+WK2aE3MUeub744nhSHayv4BRoIPSugr1FxDQnGIw3tEjGTgh8yQeflpJKw=; Received: from ams.source.kernel.org ([145.40.68.75]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) id 1nlykt-0002CE-9O for linux-f2fs-devel@lists.sourceforge.net; Tue, 03 May 2022 20:04:22 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3137CB82061; Tue, 3 May 2022 20:04:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F65C385A4; Tue, 3 May 2022 20:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651608251; bh=yEwIKUkYrUe+UB4k6sDSTOcJaUQFRLK0s3/p+P/axO8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GI4PqtOAj9PMvq17VbxQwejZWyW9waSFBPKixzYGnlcgVZKbWRTtbDsNIZZwaqgJW oRbRzsBLXIeXqedBxITy5sBQxpsdE8I0dm3cEPiXGUZcnaeNIQ12WIBdr1DNLQll1t +pUS07koL10aaZ31K0ZVF/uLZ+EZZBoxW+DCQadgwgerGjiYcHn3UgSgB4OcJyJiYe i6tehN8h7cCda5ctDbs17t6pRzGracdobePQtcHkfSJEEz+G6rES43RSs+L4zfA7c4 iHfsO8Ek/+4eQNxEj3/7v/WG9g0aL4gDw9K4vOzjBpm1V5OnkKQ8fUIpjm9PDrF8aA kouE3UjVHDJkQ== Date: Tue, 3 May 2022 13:04:08 -0700 From: Jaegeuk Kim To: Pankaj Raghav Message-ID: References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-15-p.raghav@samsung.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220427160255.300418-15-p.raghav@samsung.com> X-Headers-End: 1nlykt-0002CE-9O Subject: Re: [f2fs-dev] [PATCH 14/16] f2fs: call bdev_zone_sectors() only once on init_blkz_info() X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jiangbo.365@bytedance.com, linux-nvme@lists.infradead.org, clm@fb.com, dm-devel@redhat.com, hch@lst.de, agk@redhat.com, naohiro.aota@wdc.com, sagi@grimberg.me, gost.dev@samsung.com, damien.lemoal@opensource.wdc.com, jonathan.derrick@linux.dev, kch@nvidia.com, snitzer@kernel.org, josef@toxicpanda.com, linux-block@vger.kernel.org, dsterba@suse.com, kbusch@kernel.org, matias.bjorling@wdc.com, bvanassche@acm.org, axboe@kernel.dk, johannes.thumshirn@wdc.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, mcgrof@kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Applied to f2fs tree. Thanks, On 04/27, Pankaj Raghav wrote: > From: Luis Chamberlain > > Instead of calling bdev_zone_sectors() multiple times, call > it once and cache the value locally. This will make the > subsequent change easier to read. > > Signed-off-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > fs/f2fs/super.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c > index ea939db18f88..f64761a15df7 100644 > --- a/fs/f2fs/super.c > +++ b/fs/f2fs/super.c > @@ -3678,22 +3678,25 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi) > struct block_device *bdev = FDEV(devi).bdev; > sector_t nr_sectors = bdev_nr_sectors(bdev); > struct f2fs_report_zones_args rep_zone_arg; > + u64 zone_sectors; > int ret; > > if (!f2fs_sb_has_blkzoned(sbi)) > return 0; > > + zone_sectors = bdev_zone_sectors(bdev); > + > if (sbi->blocks_per_blkz && sbi->blocks_per_blkz != > - SECTOR_TO_BLOCK(bdev_zone_sectors(bdev))) > + SECTOR_TO_BLOCK(zone_sectors)) > return -EINVAL; > - sbi->blocks_per_blkz = SECTOR_TO_BLOCK(bdev_zone_sectors(bdev)); > + sbi->blocks_per_blkz = SECTOR_TO_BLOCK(zone_sectors); > if (sbi->log_blocks_per_blkz && sbi->log_blocks_per_blkz != > __ilog2_u32(sbi->blocks_per_blkz)) > return -EINVAL; > sbi->log_blocks_per_blkz = __ilog2_u32(sbi->blocks_per_blkz); > FDEV(devi).nr_blkz = SECTOR_TO_BLOCK(nr_sectors) >> > sbi->log_blocks_per_blkz; > - if (nr_sectors & (bdev_zone_sectors(bdev) - 1)) > + if (nr_sectors & (zone_sectors - 1)) > FDEV(devi).nr_blkz++; > > FDEV(devi).blkz_seq = f2fs_kvzalloc(sbi, > -- > 2.25.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel