diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 3531d8e1da04..3c3789492c10 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1598,7 +1598,7 @@ void submit_bio(int rw, struct bio *bio) | |||
1598 | * If it's a regular read/write or a barrier with data attached, | 1598 | * If it's a regular read/write or a barrier with data attached, |
1599 | * go through the normal accounting stuff before submission. | 1599 | * go through the normal accounting stuff before submission. |
1600 | */ | 1600 | */ |
1601 | if (bio_has_data(bio) && !(rw & (1 << BIO_RW_DISCARD))) { | 1601 | if (bio_has_data(bio) && !(rw & REQ_DISCARD)) { |
1602 | if (rw & WRITE) { | 1602 | if (rw & WRITE) { |
1603 | count_vm_events(PGPGOUT, count); | 1603 | count_vm_events(PGPGOUT, count); |
1604 | } else { | 1604 | } else { |