diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 2cba5ef97b2b..54e442ba44aa 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1490,10 +1490,7 @@ void submit_bio(int rw, struct bio *bio) | |||
1490 | * If it's a regular read/write or a barrier with data attached, | 1490 | * If it's a regular read/write or a barrier with data attached, |
1491 | * go through the normal accounting stuff before submission. | 1491 | * go through the normal accounting stuff before submission. |
1492 | */ | 1492 | */ |
1493 | if (!bio_empty_barrier(bio)) { | 1493 | if (bio_has_data(bio)) { |
1494 | |||
1495 | BIO_BUG_ON(!bio->bi_size); | ||
1496 | BIO_BUG_ON(!bio->bi_io_vec); | ||
1497 | 1494 | ||
1498 | if (rw & WRITE) { | 1495 | if (rw & WRITE) { |
1499 | count_vm_events(PGPGOUT, count); | 1496 | count_vm_events(PGPGOUT, count); |