diff options
Diffstat (limited to 'drivers/block/brd.c')
-rw-r--r-- | drivers/block/brd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c index f1bf79d9bc0a..1b218c6b6820 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c | |||
@@ -340,7 +340,7 @@ static int brd_make_request(struct request_queue *q, struct bio *bio) | |||
340 | get_capacity(bdev->bd_disk)) | 340 | get_capacity(bdev->bd_disk)) |
341 | goto out; | 341 | goto out; |
342 | 342 | ||
343 | if (unlikely(bio_rw_flagged(bio, BIO_RW_DISCARD))) { | 343 | if (unlikely(bio->bi_rw & REQ_DISCARD)) { |
344 | err = 0; | 344 | err = 0; |
345 | discard_from_brd(brd, sector, bio->bi_size); | 345 | discard_from_brd(brd, sector, bio->bi_size); |
346 | goto out; | 346 | goto out; |