Skip to content

Commit 3ffb52e

Browse files
author
Jens Axboe
committed
block: fixup missing conversion from BIO_RW_DISCARD to REQ_DISCARD
Didn't cause a merge conflict, so fixed this one up manually post merge. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 511d37a commit 3ffb52e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ void submit_bio(int rw, struct bio *bio)
15981598
* If it's a regular read/write or a barrier with data attached,
15991599
* go through the normal accounting stuff before submission.
16001600
*/
1601-
if (bio_has_data(bio) && !(rw & (1 << BIO_RW_DISCARD))) {
1601+
if (bio_has_data(bio) && !(rw & REQ_DISCARD)) {
16021602
if (rw & WRITE) {
16031603
count_vm_events(PGPGOUT, count);
16041604
} else {

0 commit comments

Comments
 (0)