summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-06-29 13:23:14 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-06-29 13:23:14 +0200
commit8c9135269a1d3d3181202b91537d8ec1b967e2a4 (patch)
tree5d195aa584fe8e94033753730e444058009f408d /block
parentb3142735d290fae3a7444e6a3fc2b3d68d43b3d8 (diff)
parent6002323b9f6971f38517617170e84b04df0a9bd1 (diff)
Merge branch 'for-linus' into for-2.6.36
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 98b4ceed263e..3531d8e1da04 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1598,7 +1598,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_has_data(bio)) {
+ if (bio_has_data(bio) && !(rw & (1 << BIO_RW_DISCARD))) {
if (rw & WRITE) {
count_vm_events(PGPGOUT, count);
} else {