Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1353690rwe; Thu, 1 Sep 2022 17:32:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4R5f+aICPAD9laCFs7SswVE2pwDR/1rY+4+RBCYA158hJUcu8uR4W2sqLSGUl4jWsqxvGR X-Received: by 2002:a05:6402:4407:b0:447:1026:7537 with SMTP id y7-20020a056402440700b0044710267537mr29909964eda.312.1662078723834; Thu, 01 Sep 2022 17:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662078723; cv=none; d=google.com; s=arc-20160816; b=dU0VXyE6TrusK9k1QnMJlqwFPht0vlFKMcurB+3DZU6kvN3sdl6fddg2luZp2gZpb8 5cuL0ZxH+cnOV8QyJxHV5fD2Gn/8DovbTe4O2x+AEMHMvv/oWzp3NfsrMiL74y8T9kXe YQ3u1tHFfjUzS5UGZFG6VLbkATu5mRwcqqYwJdeU2wXsbTHDto4PgewKWcOe3SHNNzRq A1TkBNiPbq6XUky4BLheEy73X7PuK3srRg+t4Z8eEJ6dm2XMSO1jD2UhTDv90UDPoWhS qmKfTexTl2OrX0clKZt98TEvnijYNACnxI1XpIWDiuD/T7IAo3Hqjj187LJ1isL8VrWm S/Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=70lKWmlrtQoxiqEddVxE204zBfW5n8dIdIq2Ch1+cXM=; b=ZQ6IWqvMiOdnyTI0gTimdYodHaPZaOVjctIVpXViFqmkDJ+DYeMUiTd2NLLjr2kkbv Lr8+ypnuCq+KCm88KndNoB/4zspvMLh5PrGrZOqw2RdMk2qWDtDcFyEFnNBr0kTF4GMy oGTeSiCzKRyt4nAWUPI+q8pvSEZLzEzn7MD214RHnajZqxovop0gddpfW1ECVSFstQnu VDNIiq/4kQRkpt3liqZci2jIDdVvRUIQ9TT+jrePt71QRBYghIk/swrKbn4cqnpfffOQ xpWV8ArSu1+wzTf5BXCW1QUaZTqFnKnowS97JmfKQRxsFF+J0j2HdW0aeAJya/HZj19D vNgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MQYtpvVu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v9-20020a50c409000000b00448d387c327si372525edf.181.2022.09.01.17.31.35; Thu, 01 Sep 2022 17:32:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MQYtpvVu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234788AbiIBARC (ORCPT + 99 others); Thu, 1 Sep 2022 20:17:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233034AbiIBARA (ORCPT ); Thu, 1 Sep 2022 20:17:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CBBF5A833 for ; Thu, 1 Sep 2022 17:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662077819; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=70lKWmlrtQoxiqEddVxE204zBfW5n8dIdIq2Ch1+cXM=; b=MQYtpvVuVWNgrcbNr/NblDUULd5rFQiduTON2u6cPn4hRSBK74sdnZcBnWJLYT5KOGOm1/ +jdFlAoXKTqYh2sA0qC2htvvCKEFnl0zVcDTIOMM1yNv0LQHWzd0UjmmnBwijGyUAM3cyE IcFeVKflgMW1fHOEkXD0SKd3JTUwNeU= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-515-lRi49pb9NZuKiQOkBfvLxw-1; Thu, 01 Sep 2022 20:16:58 -0400 X-MC-Unique: lRi49pb9NZuKiQOkBfvLxw-1 Received: by mail-qt1-f197.google.com with SMTP id d20-20020a05622a05d400b00344997f0537so456100qtb.0 for ; Thu, 01 Sep 2022 17:16:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=70lKWmlrtQoxiqEddVxE204zBfW5n8dIdIq2Ch1+cXM=; b=FzbxVHmREyEQ0nKCS4sgtukEHDsfQ1QAw+ObIwN1bUa4LSZT0cUlvCYWRWkiRByPJ4 lmss7xY5BIV0q3z2sVAHH4dsg+zzr62DBbAMJhTCHbUzOeWcx3qg/LHCvhrmyG2lCsP4 fK/WUobceKc8uGm7yZA1De/oaxeg/1mXJYLRCIEHlrzgT0yhjt6WAkW21lc7ybbaqpSN PdmrbGhhq45f0s8rIzplC8YwfD3NfYfEFEOeI84aRbzB+JYP6ZDy2exzuRzOljUUfvyH OQa/oktVyxX2HgQouG209xnbPlHh1mlw/GBvZEccfaazBuXGYnU9hXImECB2HvaqpNeI lliA== X-Gm-Message-State: ACgBeo2GsEA9POmsu8ADiYX6i9KECYgt1VcuOX0Nv4z7rk8N9XYdQwF7 foJ6lPzqB0yrixWriGduLtTPY5FUkDYAKqG431B0ktRksrxw5DJ0DUyZTr8QVc58/3C/aHQnMsx TMPO1p1GnkfMJ8eAmDp6W9nA= X-Received: by 2002:a05:620a:2551:b0:6b8:f97f:b855 with SMTP id s17-20020a05620a255100b006b8f97fb855mr21703761qko.260.1662077817841; Thu, 01 Sep 2022 17:16:57 -0700 (PDT) X-Received: by 2002:a05:620a:2551:b0:6b8:f97f:b855 with SMTP id s17-20020a05620a255100b006b8f97fb855mr21703745qko.260.1662077817650; Thu, 01 Sep 2022 17:16:57 -0700 (PDT) Received: from localhost (pool-68-160-173-162.bstnma.fios.verizon.net. [68.160.173.162]) by smtp.gmail.com with ESMTPSA id x6-20020ac84a06000000b00342f8143599sm157323qtq.13.2022.09.01.17.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 17:16:57 -0700 (PDT) Date: Thu, 1 Sep 2022 20:16:56 -0400 From: Mike Snitzer To: Pankaj Raghav Cc: agk@redhat.com, snitzer@kernel.org, axboe@kernel.dk, damien.lemoal@opensource.wdc.com, hch@lst.de, bvanassche@acm.org, pankydev8@gmail.com, Johannes.Thumshirn@wdc.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, dm-devel@redhat.com, gost.dev@samsung.com, jaegeuk@kernel.org, matias.bjorling@wdc.com, Luis Chamberlain Subject: Re: [PATCH v12 09/13] dm-zone: use generic helpers to calculate offset from zone start Message-ID: References: <20220823121859.163903-1-p.raghav@samsung.com> <20220823121859.163903-10-p.raghav@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220823121859.163903-10-p.raghav@samsung.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23 2022 at 8:18P -0400, Pankaj Raghav wrote: > Use the bdev_offset_from_zone_start() helper function to calculate > the offset from zone start instead of using power of 2 based > calculation. > > Signed-off-by: Pankaj Raghav > Reviewed-by: Luis Chamberlain > Reviewed-by: Damien Le Moal Reviewed-by: Mike Snitzer