Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1068125rwe; Thu, 25 Aug 2022 14:57:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4EtC6NULOyUFKeFDY0/tZNbXQfjLGVGKXDOXdnWcCNvCrQKBAxQIhGpFd5qalWcSfD5ldR X-Received: by 2002:a05:6402:320d:b0:446:bc66:5a6a with SMTP id g13-20020a056402320d00b00446bc665a6amr4660422eda.326.1661464654559; Thu, 25 Aug 2022 14:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661464654; cv=none; d=google.com; s=arc-20160816; b=Dj1Xp/9fEbrtlYbctLuQGLB4JLZuptSCw5RmWYPIpVXKtwRi1Dl+687cLzPgjbRVln /IFQ1UZO1WpWLmgphHWBqUp6914ahVIoFfRwiiGJZ1ZwRDBrj2iJQ6OgYkzcxMdDxd4z JdUaB6zsFjBYHfjF9zmqMpc1Cc+e06+QM5m4IX4lTMU6ibrstv4vbU468l4ok4BWzxky fS6l8Ay6S5KTjbabGt0BR/ocpmNXUZEw23u1pTN+ERraubBslBS3rlWq1AsDS4BC+sVW mYmiogqZsGBeD/jvLgDm05lNc9sPHZhLXIha7JXGXBHE1nyn3WZTgOOg9LPrTMbjdXoI 1l7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=PoKbqdZjqcMil3GUCh8PrCnRMNvOIz0uCEqvIuzke58=; b=UDXycx/Wx7z4cgpe0gTsAuWOVh1qyfxEsRbF0Nwemqp3+qKI5N+Yzh2NjbcjlhEba3 a0fRAO8GHwZzZAxCiJvQGNPS+mmWVGfvDfurEpSA15JIqEskPcRo/Ro65eTfmZ0INdv0 AxzG0F6nz4Ylb4nKpJ+Tsrug6Oky4PjK8G7/rjGbGYYMEcNuprvPlgW/YO8XW2pdXNFP Ks4iOMU1FQwL0ud7uZ9gtXPR11ZwcESJGUHX+iG6j8X0zHc4oQZDW3UCUcTtbIj0kWf4 ePf5mBxyTJHgPU22C6uJczMoqHzSoXpFqTig3R73xCxuGlwjnncynjKRzbj4kzMUf05m eNew== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jv27-20020a170907769b00b0073d5fb95002si185463ejc.433.2022.08.25.14.57.07; Thu, 25 Aug 2022 14:57:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243975AbiHYVxs (ORCPT + 99 others); Thu, 25 Aug 2022 17:53:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243871AbiHYVxq (ORCPT ); Thu, 25 Aug 2022 17:53:46 -0400 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72FA33CBD3; Thu, 25 Aug 2022 14:53:45 -0700 (PDT) Received: by mail-pf1-f173.google.com with SMTP id g19so2799533pfb.0; Thu, 25 Aug 2022 14:53:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=PoKbqdZjqcMil3GUCh8PrCnRMNvOIz0uCEqvIuzke58=; b=grvscDb5M8s3FlXE/0PaeHXXMbtBlRx5VzlQJJSPkbUN2tSiqqeMbFECQE7b1uA9S3 cbOeezWyRSUE0QlfIcp7Py4Ulw+aOXDgl5qx/blHo8Oplci+ez14tgW1DRDxsHkMM1va OiNCrEejcztmU82w8KLuXWyJBgFm/4YHeMabCriTjjrwxDg7g1A4ysIrGV5Pn7GO3fMy g3HmbujHhi/JEtoNTxjP/MZsvtCsTZVOWlxSx26q4W2gJ3jiwoO+qQLJMyWm9BE+lBfO swYrdHL/+HYaEkm61EZcjrLGq1rSH/oqmkimQg9rUAR4Fe7qkZtYA8OWNfcWV1Fvg7tQ 3wBg== X-Gm-Message-State: ACgBeo3qw+uEtjc/2wQ9IwUygowvAMt1ARTjrrhhcc+u+PVnFV9QEPwf udk8g/Wi1/urYsR1Aq3fkvQ= X-Received: by 2002:a05:6a00:3497:b0:536:d6a8:6f62 with SMTP id cp23-20020a056a00349700b00536d6a86f62mr1039067pfb.79.1661464424600; Thu, 25 Aug 2022 14:53:44 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:349c:3078:d005:5a7e? ([2620:15c:211:201:349c:3078:d005:5a7e]) by smtp.gmail.com with ESMTPSA id d8-20020a17090a3b0800b001fb0a363c18sm195698pjc.52.2022.08.25.14.53.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 14:53:43 -0700 (PDT) Message-ID: <9e81fd1e-b206-dd8d-4c27-1aa5cdcf4e10@acm.org> Date: Thu, 25 Aug 2022 14:53:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v12 09/13] dm-zone: use generic helpers to calculate offset from zone start Content-Language: en-US To: Pankaj Raghav , agk@redhat.com, snitzer@kernel.org, axboe@kernel.dk, damien.lemoal@opensource.wdc.com, hch@lst.de Cc: pankydev8@gmail.com, Johannes.Thumshirn@wdc.com, linux-block@vger.kernel.org, dm-devel@redhat.com, hare@suse.de, jaegeuk@kernel.org, linux-kernel@vger.kernel.org, matias.bjorling@wdc.com, gost.dev@samsung.com, linux-nvme@lists.infradead.org, Luis Chamberlain References: <20220823121859.163903-1-p.raghav@samsung.com> <20220823121859.163903-10-p.raghav@samsung.com> From: Bart Van Assche In-Reply-To: <20220823121859.163903-10-p.raghav@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 8/23/22 05:18, 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. Reviewed-by: Bart Van Assche