diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-10-02 06:53:22 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:21 -0400 |
commit | b04accc425d52ca59699290661e0dfd09b0feeeb (patch) | |
tree | 2d30e03b384e9a6c990006c4c68176b56fd53fbe | |
parent | 8deaf7210728c453295dc1cb2a5b66c68183ac85 (diff) |
block: revert part of d7533ad0e132f92e75c1b2eb7c26387b25a583c1
We need bdev_get_integrity() to support the pending md/dm patches.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r-- | fs/bio-integrity.c | 5 | ||||
-rw-r--r-- | include/linux/blkdev.h | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c index ba4ada08564a..6e28dcdd23a2 100644 --- a/fs/bio-integrity.c +++ b/fs/bio-integrity.c | |||
@@ -150,11 +150,6 @@ int bio_integrity_add_page(struct bio *bio, struct page *page, | |||
150 | } | 150 | } |
151 | EXPORT_SYMBOL(bio_integrity_add_page); | 151 | EXPORT_SYMBOL(bio_integrity_add_page); |
152 | 152 | ||
153 | static struct blk_integrity *bdev_get_integrity(struct block_device *bdev) | ||
154 | { | ||
155 | return bdev->bd_disk->integrity; | ||
156 | } | ||
157 | |||
158 | static int bdev_integrity_enabled(struct block_device *bdev, int rw) | 153 | static int bdev_integrity_enabled(struct block_device *bdev, int rw) |
159 | { | 154 | { |
160 | struct blk_integrity *bi = bdev_get_integrity(bdev); | 155 | struct blk_integrity *bi = bdev_get_integrity(bdev); |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index bfc18e497c7f..bc693f5c3886 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -1016,6 +1016,12 @@ extern int blk_integrity_compare(struct block_device *, struct block_device *); | |||
1016 | extern int blk_rq_map_integrity_sg(struct request *, struct scatterlist *); | 1016 | extern int blk_rq_map_integrity_sg(struct request *, struct scatterlist *); |
1017 | extern int blk_rq_count_integrity_sg(struct request *); | 1017 | extern int blk_rq_count_integrity_sg(struct request *); |
1018 | 1018 | ||
1019 | static inline | ||
1020 | struct blk_integrity *bdev_get_integrity(struct block_device *bdev) | ||
1021 | { | ||
1022 | return bdev->bd_disk->integrity; | ||
1023 | } | ||
1024 | |||
1019 | static inline int blk_integrity_rq(struct request *rq) | 1025 | static inline int blk_integrity_rq(struct request *rq) |
1020 | { | 1026 | { |
1021 | if (rq->bio == NULL) | 1027 | if (rq->bio == NULL) |
@@ -1029,6 +1035,7 @@ static inline int blk_integrity_rq(struct request *rq) | |||
1029 | #define blk_integrity_rq(rq) (0) | 1035 | #define blk_integrity_rq(rq) (0) |
1030 | #define blk_rq_count_integrity_sg(a) (0) | 1036 | #define blk_rq_count_integrity_sg(a) (0) |
1031 | #define blk_rq_map_integrity_sg(a, b) (0) | 1037 | #define blk_rq_map_integrity_sg(a, b) (0) |
1038 | #define bdev_get_integrity(a) (0) | ||
1032 | #define blk_integrity_compare(a, b) (0) | 1039 | #define blk_integrity_compare(a, b) (0) |
1033 | #define blk_integrity_register(a, b) (0) | 1040 | #define blk_integrity_register(a, b) (0) |
1034 | #define blk_integrity_unregister(a) do { } while (0); | 1041 | #define blk_integrity_unregister(a) do { } while (0); |