Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110443
b: refs/heads/master
c: a9c701e
h: refs/heads/master
i:
  110441: 13b65b0
  110439: 2c6f382
v: v3
  • Loading branch information
Jens Axboe committed Oct 9, 2008
1 parent dc760c6 commit 6800dbf
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 7a67f63b3233ff28e753854fe27891c44f8588ae
refs/heads/master: a9c701e594669dd49fed448c27c64f20cfacc8a7
5 changes: 1 addition & 4 deletions trunk/block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,10 +1490,7 @@ void submit_bio(int rw, struct bio *bio)
* If it's a regular read/write or a barrier with data attached,
* go through the normal accounting stuff before submission.
*/
if (!bio_empty_barrier(bio)) {

BIO_BUG_ON(!bio->bi_size);
BIO_BUG_ON(!bio->bi_io_vec);
if (bio_has_data(bio)) {

if (rw & WRITE) {
count_vm_events(PGPGOUT, count);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/bio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6800dbf

Please sign in to comment.