Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp146073imn; Fri, 29 Jul 2022 02:37:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR71PU+FxfVDme0P/FEXuXzuZkgGGYyuFXfcaAGKuM+8FckBvCYzLXTHpm35QwZV4DmXONhz X-Received: by 2002:a17:902:bc49:b0:16d:ac99:f96f with SMTP id t9-20020a170902bc4900b0016dac99f96fmr2983555plz.130.1659087439438; Fri, 29 Jul 2022 02:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659087439; cv=none; d=google.com; s=arc-20160816; b=g1HJE0+RrIVpZj0sZrbGMZ3JHj91dqosuUDMDkvlF61ImfZxFdlsW0B6fxQ5mK1DEQ XXdt+SuF73JLGoKdi/URAHYRrvlfmqKZ2IxFJHAtnpEXXu7cBVwJ8xYnVbJOUEXScAMu 5HHxgF2Nk4XcixmYwroPPtWhZVUevkguABU+pafXqvfzAQ5e1MvPIYsAJA78fEzcrWhC AT8dAJKKgUWz3d++5IqgTbqR9/TuOwhB3Ec8j+3CSoNQTEOZKnK0HAW9YW6IBNcfDMJg R3emBcRjaWQN3p6i54gKJXujB8p7RU2GZTIvqdRX9FHKJCUKZBkUXPWszDGRLFjEsuEP ReSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=xUi/aumvkNNWLDf9OglW0aUO63Tnf9nSRETunbF1Zr0=; b=Rl4BdupWTDR6kasLKti2+3EKxirs/aoMwCr4kWJHo6SvPiVlG6A7YYC//oi/r1b9XR BTu8iDXBO6JNf5Kykumfhncj13qlp4Ma6PS23EOwl+C0z8zPBrObSTZIzexA1es/Cy6s NiKgvowxmNKTH7S7TZQ36k24tXV3jlAYNndR8XSa0THQOjkzL40K+BVT3iaZwuDP4stB fGvaFnemnz4IZnrnFIA19RL0vHzfC42SswLUj490bSOQk68L3X14b2Y3y9wiUUIqEVJJ tY2pbhr3yueK+u7KldLXDd9Ap4wuVOacrUwrhRMS11JcK7AWILsnxo1BVb6uvZgQM3xv p7xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FukMvNoJ; 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=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e24-20020a656498000000b0041b6b2c896fsi3658094pgv.49.2022.07.29.02.37.03; Fri, 29 Jul 2022 02:37:19 -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=@samsung.com header.s=mail20170921 header.b=FukMvNoJ; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235530AbiG2JJ0 (ORCPT + 99 others); Fri, 29 Jul 2022 05:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235514AbiG2JJX (ORCPT ); Fri, 29 Jul 2022 05:09:23 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F00985F86 for ; Fri, 29 Jul 2022 02:09:20 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220729090918euoutp020f220198867c69b94ce36ab321a6e6d7~GQbUcFz493062230622euoutp02c for ; Fri, 29 Jul 2022 09:09:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220729090918euoutp020f220198867c69b94ce36ab321a6e6d7~GQbUcFz493062230622euoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1659085758; bh=xUi/aumvkNNWLDf9OglW0aUO63Tnf9nSRETunbF1Zr0=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=FukMvNoJtks6GY6PBjOf5vVvRLF1AuGvjwRKU30hoaL7PGLjZv/yqU6VrJvg9xiJT fclInjWUpeB2J+6geSmubKrALvwSkmwXz7oruVQtypA45umdF/KLsH3jKAwdtUSLup JN0dRhWDilX0COnDstyIL1HumalKSbzdwwGp7eN4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220729090918eucas1p2789e2f8c650aa31e0ecec8f1d2aff3d6~GQbUD7Cv72990229902eucas1p2D; Fri, 29 Jul 2022 09:09:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A5.C1.09580.EB3A3E26; Fri, 29 Jul 2022 10:09:18 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220729090918eucas1p1782d5db2070d20502d6534c7a7e37a22~GQbTtKK9o1900119001eucas1p1P; Fri, 29 Jul 2022 09:09:18 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220729090918eusmtrp2cb36704469666cfa1381c86a8c45a6b0~GQbTsOxOd2132221322eusmtrp2O; Fri, 29 Jul 2022 09:09:18 +0000 (GMT) X-AuditID: cbfec7f5-9adff7000000256c-0c-62e3a3be7352 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A2.5E.09038.DB3A3E26; Fri, 29 Jul 2022 10:09:17 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220729090917eusmtip125a6d45cf8e112df70fc03b445c79919~GQbTh_gX13212032120eusmtip1G; Fri, 29 Jul 2022 09:09:17 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.8) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 Jul 2022 10:09:15 +0100 Message-ID: Date: Fri, 29 Jul 2022 11:09:14 +0200 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 v8 02/11] block: allow blk-zoned devices to have non-power-of-2 zone size Content-Language: en-US To: Bart Van Assche , , , , , CC: , , , , , , , , , Luis Chamberlain From: Pankaj Raghav In-Reply-To: <514f85ce-84fc-1186-7169-a29d7118e8cc@acm.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.8] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIKsWRmVeSWpSXmKPExsWy7djP87r7Fj9OMlj7Sdxi9d1+NotpH34y W/w+e57ZYu+72awWexZNYrJYufook8WT9bOYLf523WOy2HtL2+LyrjlsFvOXPWW3mND2ldni xoSnjBZrbj5lsThxS9qB3+PyFW+PnbPusntcPlvqsWlVJ5vH5iX1HrtvNrB57Gy9z+rxft9V oNDpao/Pm+Q82g90MwVwR3HZpKTmZJalFunbJXBl3Jq/k61gAVvFw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729090918eucas1p1782d5db2070d20502d6534c7a7e37a22 X-Msg-Generator: CA X-RootMTR: 20220727162248eucas1p2ff8c3c2b021bedcae3960024b4e269e9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220727162248eucas1p2ff8c3c2b021bedcae3960024b4e269e9 References: <20220727162245.209794-1-p.raghav@samsung.com> <20220727162245.209794-3-p.raghav@samsung.com> <7984b969-9025-6b31-2645-da08daeefafb@acm.org> <514f85ce-84fc-1186-7169-a29d7118e8cc@acm.org> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS 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 2022-07-28 15:29, Bart Van Assche wrote: >> But I am fine with going back to bdev_is_zone_start if you and Damien >> feel strongly otherwise. > The "zone start LBA" terminology occurs in ZBC-1, ZBC-2 and ZNS but > "zone aligned" not. I prefer "zone start" because it is clear, > unambiguous and because it has the same meaning as in the corresponding > standards documents. I propose to proceed as follows for checking > whether a number of LBAs is a multiple of the zone length: > * Either use bdev_is_zone_start() directly. > * Or introduce a synonym for bdev_is_zone_start() with an appropriate > name, e.g. bdev_is_zone_len_multiple(). > Thanks for the clarification Bart. I will go with bdev_is_zone_start() as it is also a commonly used terminology. > Thanks, > > Bart.