Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp10322rwi; Sun, 30 Oct 2022 19:27:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6s7oZpvgmk+f1kITLthZWPrp6j5ccLkYxCtkoUyA9NKk010/vNZB/rJ07AmmSBpQgkKj35 X-Received: by 2002:a63:fd48:0:b0:46e:d8b1:8243 with SMTP id m8-20020a63fd48000000b0046ed8b18243mr10533938pgj.350.1667183234791; Sun, 30 Oct 2022 19:27:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667183234; cv=pass; d=google.com; s=arc-20160816; b=XUgLhmjtS4m220Rz0dOLPxNXMkKQMW/GmyMIZgF1kxw8VQkiXCbrvQEA5M8k+1W+cK uDAGjjafxTWwk56VygSz6w41ts8YRX0kep0j59hFId8IAR7G8AXfr17pE4lCpV/OLfvL EwIFaTDK9DFCHvI//WTjiswxlcyRE+V4mIdDC7hSo5gm+scfmTg1Gc5LFmmDtHXE89Lj O8XD05QzTt/5NI0vvqnan8BCKXyOmVzDRhesGFmSoKH8tasxW1zoYVW+650pS5cYMW2T Doh6RSb31CZXG7enFC2qNE0fCVimnd3gYDAXxk1RSNlBA2WXPAbud0/PKcYklU9rpLlG Bflg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=49244cc/DruHsoViB+/wJN95HtQlSmimuN3MePLOqfM=; b=ENKDtMHk/ODe9FVjsxBeZUjjLIcdfMqSNzok+lXNzl7gZs3leeABp4rMKhOIPkeh19 vvB1xBOlf28F67n4nPZc4eYQSTzrMwKQANQ9CFym7AaPPcFNw3KOaNFdmKDi43SWnwa9 TnxoH+njzERXQ7YwFqFdRoOXp/hl2ANSYjzpcErtqNevtGDz206UcZHow7IoQP0UxZGx gwFX8t2srOriFRoy3zfnXhSnjiHzBBuzIQWzdyS5Vif3OUSCYdBokGScb7LUtgVZQRBD 7rl1NQkxoow6wxeJGBWKmDI6eGFv295FwvqzX1pGZ55OMLWC76uYOIxAKjwnL8KtTQ/M YRDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=kETIDfZA; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a170902684f00b00186db024863si6319558pln.612.2022.10.30.19.27.01; Sun, 30 Oct 2022 19:27:14 -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=@Nvidia.com header.s=selector2 header.b=kETIDfZA; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbiJaCDx (ORCPT + 99 others); Sun, 30 Oct 2022 22:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiJaCDv (ORCPT ); Sun, 30 Oct 2022 22:03:51 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2045.outbound.protection.outlook.com [40.107.101.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D67495AE; Sun, 30 Oct 2022 19:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MUFsOeiiQkOxZ5Xdm1FJqeQ54QnvqYfo3Nazy4bT1IuFqUbmKVkcHzety9I7lVGeyAv7aq0nyypWwUV3RD0uHd4hLGcKbgK94sZ8/l5lGAeyy2/nFIsotab1Stv6U8ydLCsqhTxQupOSDdd98vb35RvGpKITurBsGyVvZYB3pLQKwCgkzYHdGhjwk81uD7xC5qrCEriylJCpTdT87sIlk2pLTbOdIAyWqmH0qqVC9k6dErygewXmGsgYU1sXxzhExiTCfNR70zs8nhvMnilTK3cpsxn6nrf7sjcwppnZNm2Tzx353pu2/nV/Z22w6zEP2Vfz0znd/s2sABG85mscTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=49244cc/DruHsoViB+/wJN95HtQlSmimuN3MePLOqfM=; b=XfNx6K6ZLOGw1QpThdUAR2bCGVXvuIhIHAuROZIXNYUveukAnOL5kTMs9rwnn6BfpgzrbrSQ6AhGaSputYm7jewL1TjymzFBUfKPftJmt0fCjrU4qe4CqXURuV9Bic2XoQKMZqQvFe+6cwjMvKEGrNMh8pP3mdvcb7ZOLo+okc6FN/d5lFn4EZ6SrNZK38yvxag4SNaIxP8hCQogEf7TPW9ywREn25btWJEk5qJiDy/WEfu9U8wDBVPbQN2AkhBweL/gLoXuuqKykhZYzyGb4igM9P1f8Gvj6hwsy+WlnKyuoisLBdRXK2p4I0Wv/OYhyXiTvoXzWdnNubFcezvMpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=49244cc/DruHsoViB+/wJN95HtQlSmimuN3MePLOqfM=; b=kETIDfZAf4+zfOuj+E9setcUhQl5/7Ty90J14CHyhWBYAfwC+oNPJJFGulGGoT/NKqscSKJIrako4AfSYijSG7muSFuUw/aJbEG8DiGujyaxvHbwkEc9fLIuDDA+8lMuc2LNmMguLeM6VCqiIIAary/QdVsdIelvDI8cRqp4kKbvtPIyERhmHr1sj5bwJXQrNkR4xLRfh1FNFeAGV1TPUCPGCtAzf+sflvQWqIVIinuyxT0KX+eUsqAfycHu9g0+AutCVE9UFmSBUigpsVTgVDWc95QHY40KhLOW3OgyQWoHotu7kN4fjvrGGf/jPhPQsL3LGI4DqLde01AtmaszuA== Received: from BL0PR12MB4659.namprd12.prod.outlook.com (2603:10b6:207:1d::33) by SJ0PR12MB6829.namprd12.prod.outlook.com (2603:10b6:a03:47b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.19; Mon, 31 Oct 2022 02:03:48 +0000 Received: from BL0PR12MB4659.namprd12.prod.outlook.com ([fe80::5d3f:ebda:53e5:8ac8]) by BL0PR12MB4659.namprd12.prod.outlook.com ([fe80::5d3f:ebda:53e5:8ac8%5]) with mapi id 15.20.5769.018; Mon, 31 Oct 2022 02:03:48 +0000 From: Chaitanya Kulkarni To: Dawei Li , "axboe@kernel.dk" CC: "bvanassche@acm.org" , "hch@lst.de" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3] block: simplify blksize_bits() implementation Thread-Topic: [PATCH v3] block: simplify blksize_bits() implementation Thread-Index: AQHY7B9bUDUAxpiRp02m2deylVEJzq4nwcmA Date: Mon, 31 Oct 2022 02:03:48 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL0PR12MB4659:EE_|SJ0PR12MB6829:EE_ x-ms-office365-filtering-correlation-id: 673f75c3-0fa7-4e0c-fd6f-08dabae4263f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +tnjm4QrnfFTcjkpbStgH9o9IRP3CuNdw2vj9YygZOxmtDEHzTVw4eM0ix93Uwr1yv7MXUFLC0Zhgwl1W+e1PL/i3jOm72WddW7zLE2mbOKUzK6cp5cn3zVTgRPo+NjFhk7gl9iEuoQ1aFag9RL7HqVVNHi+Uys971cF6ggTVCFqp2CoBVGlT8vv2r4XqS1jYY/7KvtPEZX8ZhUg6w2MOxtRoySYsdzIDvcRxfLtZwWJjiXX5sPfGqfXiICXayOEqcpa1Is1NP+/nmLK04BeNHyiYs+TRX99tNiN/G2kNwmAq5KsFrw9Fo1bjR+a3+aZcY1JIyUVQkfOYprrX6SgS+qr7PjpuzKEGMYS8n7XirQcq+Ic/V6yBcfacCAK3Ik/DrWZHInCRzs8MCc0sENMMMQGL3X5Xz7d+Nv6JPaRQ98IHBMiDKOu1FtA63hCmxCBwDm5vGc/6S+EZ84/Mm34uHDeX/cJWsDqY6mJHygnexcO9FVb+eaqXa3tQ4aPtygkTbbJLD4yK2Ewh+3M0vMFrJ/QbyCFHnGKwwT3FcHFhkfNiOfwPwvWoS2BpiZXV3bMIh+d6J0+4kOycBQicrcA6gfawUlWL6ATRty64D6z0GT0WiRvsFvxhSBQLai8dgs5Noi9LZkWfYWSfVASilutIqk1AAGCzoE58cBgX9yHv4xDSvb8ucCKt843wxYuvF18QaOCdI0bYYqC4qaoMcyL/jDSitqm6izohVpuXdGgQVczxzIjhzVz0+RbVC9Or8We+0RgdQd2myqkp4+JLLpGoxNmXzHdkRaDBlSv4DLGF4PFTv8ey8czL9ddAPwSeVCW x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR12MB4659.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(376002)(39860400002)(136003)(396003)(451199015)(8936002)(4744005)(5660300002)(2616005)(86362001)(6512007)(2906002)(31696002)(6506007)(53546011)(478600001)(83380400001)(71200400001)(36756003)(6486002)(186003)(91956017)(31686004)(38100700002)(4326008)(8676002)(76116006)(66946007)(66556008)(66476007)(66446008)(64756008)(38070700005)(54906003)(122000001)(316002)(41300700001)(110136005)(45980500001)(43740500002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?U0k4dXVacm5hVHUvZGdMSGdCbkxLUytUTnMrR2x4S0lwV2NIYTl6R3I2aUJH?= =?utf-8?B?WXR6ZG84YlVVSkJlOTBXNFRGMjd2aWh0OW9nbDhodnUzdmY0Z081T0pnZkRt?= =?utf-8?B?SHUyS1RiL0ZNVE9xVW5SVTlpRUtjamc1dEt1cjF0UjJYaVdrS2dGU1NqVTNO?= =?utf-8?B?VUErS2R4bHJocWNzcjBoZ1c5YktCQ0F6bWxRWWRXdExrc0htU3V4RXpkZ3pG?= =?utf-8?B?Q3Z4Z0ZSb1dlRjVkVjlkQ0FsR1hLQlhsR0luSHV1dnZSd0NjMFlzSzgwaklR?= =?utf-8?B?VW0vTFJZNThGSTNNMnVJUHlyaGkxZTh3THRTbjFzUXNJRWNUTUlHN01oZ1VG?= =?utf-8?B?YTh1VEQyWTMwNUFhcTRMbVB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pU4G6HJyQYy7/JzQEo3qq0opcPzRB//ZK?= Content-Type: text/plain; charset="utf-8" Content-ID: <8FA5F7A91D90E647B148E35965DA23CD@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB4659.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 673f75c3-0fa7-4e0c-fd6f-08dabae4263f X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2022 02:03:48.2759 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: g7HUCSExTR7D3n646PaNWXL4ITEBO0yFYjqgJRy+lIeG9Qc7+b839yZB2HPbnzRb8G2fSJzd0IHiakt/MtGZDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6829 X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE 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 T24gMTAvMjkvMjAyMiAxMDoyMCBQTSwgRGF3ZWkgTGkgd3JvdGU6DQo+IENvbnZlcnQgY3VycmVu dCBsb29waW5nLWJhc2VkIGltcGxlbWVudGF0aW9uIGludG8gYml0IG9wZXJhdGlvbiwNCj4gd2hp Y2ggY2FuIGJyaW5nIGltcHJvdmVtZW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