From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 3899F423B77 for ; Thu, 3 Sep 2020 10:34:01 +0200 (CEST) Date: Thu, 3 Sep 2020 10:26:09 +0200 From: Christoph Hellwig To: Ulf Hansson Message-ID: <20200903082609.GA23498@lst.de> References: <20200903054104.228829-1-hch@lst.de> <20200903054104.228829-3-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Jens Axboe , linux-raid@vger.kernel.org, linux-scsi , Linux Documentation , linux-s390@vger.kernel.org, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , linux-block , linux-ide@vger.kernel.org, dm-devel@redhat.com, target-devel@vger.kernel.org, Christoph Hellwig , drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] [PATCH 2/9] block: add a bdev_is_partition helper List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Sep 03, 2020 at 10:19:34AM +0200, Ulf Hansson wrote: > On Thu, 3 Sep 2020 at 07:42, Christoph Hellwig wrote: > > > > Add a littler helper to make the somewhat arcane bd_contains checks a > > little more obvious. > > > > Signed-off-by: Christoph Hellwig > > Not sure why we have both "bd_contains" and "bd_partno", nevertheless, > feel free to add: Right now both are needed for how blkdev_get/put work. But I plan to eventual kill off bd_contains after some major surgery to that code.