Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3894206pxb; Wed, 13 Oct 2021 15:34:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMYPYpOvVTOZ7eBBohZsgkuqiXUTAiklVY2uTIX0b/LwPODmYCgLFpxJejG3rism06SbcA X-Received: by 2002:a17:903:11c8:b0:138:d85a:7f09 with SMTP id q8-20020a17090311c800b00138d85a7f09mr1721290plh.75.1634164476697; Wed, 13 Oct 2021 15:34:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634164476; cv=pass; d=google.com; s=arc-20160816; b=QpGU3Mir/BBgU/ksvkxowBqW+iTj4b5Fei0AoB8XOIz+fnxY4DjPRoMZJKzotX5ULx nIMzhWmrtkHPHci8tF6y9uCwo+j3irK3t5U9uMzLT5yjoNNM828nS5E4MF2xfKbVnsdl RhVbKp79JCJ17MO+zp1p8iTQyjtFo3rFntM9G0xtMguqS3d9ohkaec4ERPzv+716GvCQ aPOxvsgL2JysyM/yP9RX/vDg2RW4xDd7HqvKw4ahL7hTG49an1KHV21lVI4QOiu3e3cb Zi5uLE3LSy4utiWyxUqGTz9kZZC71kk0PZmy8CVz9nzDrbUbpQbdsPE5/vJhaI5EtXWQ 0oiw== 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=864Gkq+OUjAaLhBpXJA5Ah2pBllzcjFIWDplOWzOyP4=; b=fuZ3qDidvHiZgDB1UPoYKRPzQimEdJ/jKTyANYjvS0c/lDWceStt6qI6DpZvVcVWmX nWqxetxtSipQUQxLrK2fD/FuYgO44LaxoiW3lUuqEwTZFRFxR3PbNz/q70GtmUuzf8Pa Ug4ybdPoAAP3lrqtoAS/sCyUFc7gtHl7LByhtrt6hefk6udZcWfAsjMtC1lbHgH3Gh0v EeUkzWNPrmzWrwOI3Yi2v9jR/D/xe9fp/eSGD3k13wSfYa1upuddJZS/lTFhxDJKvHk/ ee6Jto7lqQKvcvPwPnpRzdsHLw4cDvLwJqcaJ9j0+gMa5u5IDoWDDOrnDmwYMqUL9mqS Yfgw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=SR7TM+mz; 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-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si1159798pjg.88.2021.10.13.15.34.15; Wed, 13 Oct 2021 15:34:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=SR7TM+mz; 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-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbhJMWgG (ORCPT + 99 others); Wed, 13 Oct 2021 18:36:06 -0400 Received: from mail-bn8nam12on2043.outbound.protection.outlook.com ([40.107.237.43]:11712 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230348AbhJMWgF (ORCPT ); Wed, 13 Oct 2021 18:36:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eAhd5I6nnjhGqg9wfbNUBBBSoBrlYpc5IkcS4AJ3d85TveWNYIER96FpAiBdNqzOYFHpTmrlqp2fjGSCXsoJlkWYcgXT6okzLAsuMP8iZJAXaSBCvVC+AF/GlYWzxJKrXtOTQD/Kx9icCs2IPzlk+Dckl5m5na2ewdxCSl36Z6iXaDOMA5/+iUuhwXmOhS9Ry2Ndv8SPuPhGQWRKQAvGz0GpsbyxxXcvKpTR9SdiC74I6kjC1xCeQ0itPgxBKbF5DZQiTvNWCbOg8iuXuRstC3x1nFvAjtzAz9KVdhZtRkWxA7k9vdH3p0nncsYln8B/8G+GpCAj3RAs0r6qAJINZA== 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=864Gkq+OUjAaLhBpXJA5Ah2pBllzcjFIWDplOWzOyP4=; b=aFShMIt9jV3ra3fSkvlzvlQVaHKXKGaHw6NaSusbnR2cOxJLpTNxtpqZ8OgLgR1Y4KrIPaBIQTq6V7zyxwIJIaTyUBzdehXxxphMIiTu9ioQlXqZAh0RJLh6kt86FYZzSb9+xhxv77e3ROEqBhJXPeHibgSyTcXMHRNr8rOvOYFPlSOPf2/u5LMYfsG+SfQ1ekwCwbPl1psAJE8HxDmS8La68zv6vPUBrit/M+Jo5oVhfa4Tc60X/AeeVqzBOHQkasXu1oLP9BFDC1tvcZW5JN4OZB1YYBd0JgQbyqoHUPMjXdS80YFqRYDYkp/quawlEsVh5SDgjeGGQkxGxlk5zQ== 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=864Gkq+OUjAaLhBpXJA5Ah2pBllzcjFIWDplOWzOyP4=; b=SR7TM+mzsVKJ5FcwuH4OJ/G6M7CVpu9nLgJGLji70wSll0bcXNQulE85bH5e4usBWwGp/h3mkJCnwPKOp/k9obor0lqbUS5BWCdwUcwxMwNUBhJkeO4D0dsCkCzyxiHbdC6K1KbCPqDS3pJtTx08yTpJFmn9XJKPYNzeAx4y5Vlm5I5+0upcLYyIImD+56o7GpNtg7HqYVlYnz/3EWic8VabFL+ZEqU5XPZquQRczajCRVup/HMIBFwC6o7JgXHWjmztJuu1zzKNFQweOLEdd3Mbrm7NRaULyvaUGIjZbtRmocQrCXvxm6EFz7/SB60BJR8Q9pCOfCC8Xy+Nix/I4w== Received: from MW2PR12MB4667.namprd12.prod.outlook.com (2603:10b6:302:12::28) by MW2PR12MB2379.namprd12.prod.outlook.com (2603:10b6:907:9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Wed, 13 Oct 2021 22:33:58 +0000 Received: from MW2PR12MB4667.namprd12.prod.outlook.com ([fe80::3db1:105d:2524:524]) by MW2PR12MB4667.namprd12.prod.outlook.com ([fe80::3db1:105d:2524:524%7]) with mapi id 15.20.4587.026; Wed, 13 Oct 2021 22:33:58 +0000 From: Chaitanya Kulkarni To: Christoph Hellwig , Jens Axboe CC: Coly Li , Mike Snitzer , Song Liu , David Sterba , Josef Bacik , Theodore Ts'o , OGAWA Hirofumi , Dave Kleikamp , Ryusuke Konishi , Anton Altaparmakov , Konstantin Komarov , Kees Cook , Phillip Lougher , Jan Kara , "linux-block@vger.kernel.org" , "dm-devel@redhat.com" , "drbd-dev@lists.linbit.com" , "linux-bcache@vger.kernel.org" , "linux-raid@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "linux-nvme@lists.infradead.org" , "linux-scsi@vger.kernel.org" , "target-devel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-btrfs@vger.kernel.org" , "linux-ext4@vger.kernel.org" , "jfs-discussion@lists.sourceforge.net" , "linux-nfs@vger.kernel.org" , "linux-nilfs@vger.kernel.org" , "linux-ntfs-dev@lists.sourceforge.net" , "ntfs3@lists.linux.dev" , "reiserfs-devel@vger.kernel.org" Subject: Re: [PATCH 02/29] drbd: use bdev_nr_sectors instead of open coding it Thread-Topic: [PATCH 02/29] drbd: use bdev_nr_sectors instead of open coding it Thread-Index: AQHXv/Fw+fZmcLtgm0ivWGuz5dJtu6vRhO+A Date: Wed, 13 Oct 2021 22:33:58 +0000 Message-ID: <473988dd-f18a-3ca0-7b3e-f5ad34f1b045@nvidia.com> References: <20211013051042.1065752-1-hch@lst.de> <20211013051042.1065752-3-hch@lst.de> In-Reply-To: <20211013051042.1065752-3-hch@lst.de> 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:91.0) Gecko/20100101 Thunderbird/91.2.0 authentication-results: lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 82b45371-cc14-405f-24bd-08d98e998c64 x-ms-traffictypediagnostic: MW2PR12MB2379: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:883; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yc2rUiYBejKEb16Y8tfL5gzu0Ohbg9H7y9NStXHxgHhTYm6o6/HVrpYHPmg4ACugQAC7d8CqoVZb/wB3okQl5ZywXtXLj6N5du38klYVQXd9Gu+/RVUWDsQjAA4o5YaDXV0CYDaqPq3huJlQCnkEpii3r5mAFkJQ1Q6Ddotscy907z67twCV1nAFpIwTqWkBu6u7iBU0wb3K5PSYJhxxES8UPVToI/vRV71O3T6L1k1s+ZFbm7u6Nl364ZIjU6MbPC9yUFjaAWF6RbqUS36O8suOHsP9UuCfXmUe0UTGzqOmUud8UIr0S3Q1mz5HeE0gB08xf1rGQiTeh8G3d0YNzgb3afO7j0y6Ag258GUSvnenzm/SVfPyIMxiM7uCrEETvL3tT8XS/m+yiib1ZwON3WhGCMx01hPcob1voyJNpdVxi8LMhqfRlVD7RJo+/26xsEEk4OvTmpVK99dg4aDD5B6K/ebX7AJrzDovbHFFKy92C/aAIkrS8Rd7y0P/W+nY2b/IhmcVEuQ0cwK346JetkytHJck7Ko8x7agnKvNQB/I+jsdZIbPHhteUkraKcnNAMFSi3miKTgWTkKfareXVGMlj1TB7SBe2bdUNEjc4bC/WnE53d5VznJutxjVL6a0FjIw2y02GgSHW4phu+3EndafWQlKTgeYHKFTffGH+jX2ee16bs/es5ufpnEYsckB3HNc4SLqLIer9QdH9SXHPh3Sadum6tYMxdihWbX1u3oTZ4q55w6Ap1isqS9iM3DwDGRK8n9ic+TimKywGt5jrg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW2PR12MB4667.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(508600001)(122000001)(38100700002)(36756003)(5660300002)(83380400001)(316002)(6506007)(91956017)(66476007)(76116006)(86362001)(6486002)(8936002)(8676002)(66556008)(4326008)(2616005)(2906002)(110136005)(54906003)(66446008)(6512007)(64756008)(186003)(66946007)(31686004)(53546011)(71200400001)(38070700005)(7416002)(558084003)(7406005)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?d2UrellEYXM5NjBPYzdYcjVzRTNNak5CY0VCUWtzc1lENDliS05XL1dZMnhk?= =?utf-8?B?dGF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YUNoeUQzdEdqNmRNVUNCajhyRWNzOVd1?= =?utf-8?Q?LLSYYjlw9Pj/w?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <43BBE4AA93E9954CAC870DE93CD2159C@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: MW2PR12MB4667.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82b45371-cc14-405f-24bd-08d98e998c64 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2021 22:33:58.4460 (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: sUXTUhN7+/pSfSk2Q8INU7sTSrLD8giM4dtXzKen74fxkniAVtH+59sgrSc9iRqeHqxYKyJSInGCb0g8228cXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2379 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org T24gMTAvMTIvMjAyMSAxMDoxMCBQTSwgQ2hyaXN0b3BoIEhlbGx3aWcgd3JvdGU6DQo+IFVzZSB0 aGUgcHJvcGVyIGhlbHBlciB0byByZWFkIHRoZSBibG9jayBkZXZpY2Ugc2l6ZS4NCj4gDQo+IFNp Z25lZC1vZmYtYnk6IENocmlzdG9waCBIZWxsd2lnIDxoY2hAbHN0LmRlPg0KDQpMb29rcyBnb29k Lg0KDQpSZXZpZXdlZC1ieTogQ2hhaXRhbnlhIEt1bGthcm5pIDxrY2hAbnZpZGlhLmNvbT4NCg==