Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110563
b: refs/heads/master
c: b04accc
h: refs/heads/master
i:
  110561: 461fa1f
  110559: bac8945
v: v3
  • Loading branch information
Jens Axboe committed Oct 9, 2008
1 parent d4a4d7d commit ac4ee06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8deaf7210728c453295dc1cb2a5b66c68183ac85
refs/heads/master: b04accc425d52ca59699290661e0dfd09b0feeeb
5 changes: 0 additions & 5 deletions trunk/fs/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ int bio_integrity_add_page(struct bio *bio, struct page *page,
}
EXPORT_SYMBOL(bio_integrity_add_page);

static struct blk_integrity *bdev_get_integrity(struct block_device *bdev)
{
return bdev->bd_disk->integrity;
}

static int bdev_integrity_enabled(struct block_device *bdev, int rw)
{
struct blk_integrity *bi = bdev_get_integrity(bdev);
Expand Down
7 changes: 7 additions & 0 deletions trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,12 @@ extern int blk_integrity_compare(struct block_device *, struct block_device *);
extern int blk_rq_map_integrity_sg(struct request *, struct scatterlist *);
extern int blk_rq_count_integrity_sg(struct request *);

static inline
struct blk_integrity *bdev_get_integrity(struct block_device *bdev)
{
return bdev->bd_disk->integrity;
}

static inline int blk_integrity_rq(struct request *rq)
{
if (rq->bio == NULL)
Expand All @@ -1029,6 +1035,7 @@ static inline int blk_integrity_rq(struct request *rq)
#define blk_integrity_rq(rq) (0)
#define blk_rq_count_integrity_sg(a) (0)
#define blk_rq_map_integrity_sg(a, b) (0)
#define bdev_get_integrity(a) (0)
#define blk_integrity_compare(a, b) (0)
#define blk_integrity_register(a, b) (0)
#define blk_integrity_unregister(a) do { } while (0);
Expand Down

0 comments on commit ac4ee06

Please sign in to comment.