Merge remote-tracking branch 'coresight/next'
[deliverable/linux.git] / drivers / md / dm-era-target.c
index 2faf49d8f4d768467dbf2c376bce6d784ea3fed8..bf2b2676cb8af7c936b401c64895f9e499e80543 100644 (file)
@@ -1542,7 +1542,7 @@ static int era_map(struct dm_target *ti, struct bio *bio)
        /*
         * REQ_PREFLUSH bios carry no data, so we're not interested in them.
         */
-       if (!(bio->bi_rw & REQ_PREFLUSH) &&
+       if (!(bio->bi_opf & REQ_PREFLUSH) &&
            (bio_data_dir(bio) == WRITE) &&
            !metadata_current_marked(era->md, block)) {
                defer_bio(era, bio);
This page took 0.025727 seconds and 5 git commands to generate.