Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98898
b: refs/heads/master
c: 6e2401a
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Jul 3, 2008
1 parent da4d5e5 commit 70303bf
Show file tree
Hide file tree
Showing 3 changed files with 9 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: da9cbc87395308a21465bd25441297bbba0477e1
refs/heads/master: 6e2401ad6f33de15ff00f78b88159f00a14f3b35
9 changes: 8 additions & 1 deletion trunk/include/linux/bio.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,14 @@ static inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx,
#define bip_for_each_vec(bvl, bip, i) \
__bip_for_each_vec(bvl, bip, i, (bip)->bip_idx)

#define bio_integrity(bio) ((bio)->bi_integrity ? 1 : 0)
static inline int bio_integrity(struct bio *bio)
{
#if defined(CONFIG_BLK_DEV_INTEGRITY)
return bio->bi_integrity != NULL;
#else
return 0;
#endif
}

extern struct bio_integrity_payload *bio_integrity_alloc_bioset(struct bio *, gfp_t, unsigned int, struct bio_set *);
extern struct bio_integrity_payload *bio_integrity_alloc(struct bio *, gfp_t, unsigned int);
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,6 @@ void kblockd_flush_work(struct work_struct *work);
#define MODULE_ALIAS_BLOCKDEV_MAJOR(major) \
MODULE_ALIAS("block-major-" __stringify(major) "-*")


#if defined(CONFIG_BLK_DEV_INTEGRITY)

#define INTEGRITY_FLAG_READ 1 /* verify data integrity on read */
Expand Down Expand Up @@ -945,8 +944,6 @@ static inline int bdev_integrity_enabled(struct block_device *bdev, int rw)

static inline int blk_integrity_rq(struct request *rq)
{
BUG_ON(rq->bio == NULL);

return bio_integrity(rq->bio);
}

Expand All @@ -963,7 +960,6 @@ static inline int blk_integrity_rq(struct request *rq)

#endif /* CONFIG_BLK_DEV_INTEGRITY */


#else /* CONFIG_BLOCK */
/*
* stubs for when the block layer is configured out
Expand Down

0 comments on commit 70303bf

Please sign in to comment.