block: add a bdev_is_partition helper
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 05:40:57 +0000 (07:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 14:18:57 +0000 (08:18 -0600)
commitfa01b1e9733fd59ecb8b5b6d85dfb481d2025fbf
treef627199fb47da3dc4fa57dcbf305fff12997a918
parent250eec9e390e2be6f672f9a77cf29791c189f7da
block: add a bdev_is_partition helper

Add a littler helper to make the somewhat arcane bd_contains checks a
little more obvious.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c
block/ioctl.c
block/scsi_ioctl.c
drivers/ide/ide-ioctls.c
drivers/md/dm-table.c
drivers/mmc/core/block.c
drivers/s390/block/dasd_ioctl.c
fs/nfsd/blocklayout.c
include/linux/blkdev.h
kernel/trace/blktrace.c