From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 2/9] block: add a bdev_is_partition helper Date: Thu, 3 Sep 2020 10:26:09 +0200 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 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-ide-owner@vger.kernel.org To: Ulf Hansson Cc: Christoph Hellwig , Jens Axboe , dm-devel@redhat.com, Linux Documentation , Linux Kernel Mailing List , linux-block , drbd-dev@lists.linbit.com, linux-ide@vger.kernel.org, linux-raid@vger.kernel.org, "linux-mmc@vger.kernel.org" , linux-s390@vger.kernel.org, linux-scsi , target-devel@vger.kernel.org List-Id: dm-devel.ids 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.