diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-08-08 11:04:44 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 08:56:00 +0200 |
commit | a9c701e594669dd49fed448c27c64f20cfacc8a7 (patch) | |
tree | f5524a3612ccbfa758a2b9808111297d7ba17698 /include | |
parent | 7a67f63b3233ff28e753854fe27891c44f8588ae (diff) | |
download | linux-3.10-a9c701e594669dd49fed448c27c64f20cfacc8a7.tar.gz linux-3.10-a9c701e594669dd49fed448c27c64f20cfacc8a7.tar.bz2 linux-3.10-a9c701e594669dd49fed448c27c64f20cfacc8a7.zip |
block: use bio_has_data() to check for data carrying bio
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/bio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 9e93c929947..dbeb66f813a 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -185,7 +185,7 @@ struct bio { #define bio_failfast(bio) ((bio)->bi_rw & (1 << BIO_RW_FAILFAST)) #define bio_rw_ahead(bio) ((bio)->bi_rw & (1 << BIO_RW_AHEAD)) #define bio_rw_meta(bio) ((bio)->bi_rw & (1 << BIO_RW_META)) -#define bio_empty_barrier(bio) (bio_barrier(bio) && !(bio)->bi_size) +#define bio_empty_barrier(bio) (bio_barrier(bio) && !bio_has_data(bio)) static inline unsigned int bio_cur_sectors(struct bio *bio) { |