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 073FFC38145 for ; Fri, 2 Sep 2022 00:17:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234850AbiIBARD (ORCPT ); Thu, 1 Sep 2022 20:17:03 -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-Google-Smtp-Source: AA6agR6oThe4Ex4yHgqF6bEQvTIX/Gkg5IvByk6dGpbsPU+Rt5JY04QaEnAC3Hf1+9V3KO2xRre6mg== 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> 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