Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285128
b: refs/heads/master
c: 6898e3b
h: refs/heads/master
v: v3
  • Loading branch information
Martin K. Petersen authored and Jens Axboe committed Jan 13, 2012
1 parent 4781f3e commit 169697e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 14 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: fd83240a60ecc59849420df3393e9e6d35c77683
refs/heads/master: 6898e3bd11cc9a931ef115eee9000ac9d8f8c3cf
66 changes: 53 additions & 13 deletions trunk/include/linux/bio.h
Original file line number Diff line number Diff line change
Expand Up @@ -515,24 +515,64 @@ extern void bio_integrity_init(void);

#else /* CONFIG_BLK_DEV_INTEGRITY */

#define bio_integrity(a) (0)
#define bioset_integrity_create(a, b) (0)
#define bio_integrity_prep(a) (0)
#define bio_integrity_enabled(a) (0)
static inline int bio_integrity(struct bio *bio)
{
return 0;
}

static inline int bio_integrity_enabled(struct bio *bio)
{
return 0;
}

static inline int bioset_integrity_create(struct bio_set *bs, int pool_size)
{
return 0;
}

static inline void bioset_integrity_free (struct bio_set *bs)
{
return;
}

static inline int bio_integrity_prep(struct bio *bio)
{
return 0;
}

static inline void bio_integrity_free(struct bio *bio, struct bio_set *bs)
{
return;
}

static inline int bio_integrity_clone(struct bio *bio, struct bio *bio_src,
gfp_t gfp_mask, struct bio_set *bs)
{
return 0;
}
#define bioset_integrity_free(a) do { } while (0)
#define bio_integrity_free(a, b) do { } while (0)
#define bio_integrity_endio(a, b) do { } while (0)
#define bio_integrity_advance(a, b) do { } while (0)
#define bio_integrity_trim(a, b, c) do { } while (0)
#define bio_integrity_split(a, b, c) do { } while (0)
#define bio_integrity_set_tag(a, b, c) do { } while (0)
#define bio_integrity_get_tag(a, b, c) do { } while (0)
#define bio_integrity_init(a) do { } while (0)

static inline void bio_integrity_split(struct bio *bio, struct bio_pair *bp,
int sectors)
{
return;
}

static inline void bio_integrity_advance(struct bio *bio,
unsigned int bytes_done)
{
return;
}

static inline void bio_integrity_trim(struct bio *bio, unsigned int offset,
unsigned int sectors)
{
return;
}

static inline void bio_integrity_init(void)
{
return;
}

#endif /* CONFIG_BLK_DEV_INTEGRITY */

Expand Down

0 comments on commit 169697e

Please sign in to comment.