diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-01-11 03:21:49 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-01-11 14:29:20 +0100 |
commit | 17be8c245054b9c7786545af3ba3ca4e54cd4ad9 (patch) | |
tree | 563687812bbb1b08643dfcc25997e34eb22a71b5 /include | |
parent | dd3d145d49c5816b79acc6761ebbd842bc50b0ee (diff) | |
download | linux-stable-17be8c245054b9c7786545af3ba3ca4e54cd4ad9.tar.gz linux-stable-17be8c245054b9c7786545af3ba3ca4e54cd4ad9.tar.bz2 linux-stable-17be8c245054b9c7786545af3ba3ca4e54cd4ad9.zip |
block: bdev_stack_limits wrapper
DM does not want to know about partition offsets. Add a partition-aware
wrapper that DM can use when stacking block devices.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index a41bcc8e140f..5c8018977efa 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -938,6 +938,8 @@ extern void blk_queue_io_opt(struct request_queue *q, unsigned int opt); extern void blk_set_default_limits(struct queue_limits *lim); extern int blk_stack_limits(struct queue_limits *t, struct queue_limits *b, sector_t offset); +extern int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev, + sector_t offset); extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, sector_t offset); extern void blk_queue_stack_limits(struct request_queue *t, struct request_queue *b); |