x86/smpboot: Init apic mapping before usage
[cascardo/linux.git] / drivers / md / dm-era-target.c
index 2faf49d..bf2b267 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);