]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/md/bcache/request.c
block: add a op_is_flush helper
[mirror_ubuntu-bionic-kernel.git] / drivers / md / bcache / request.c
index 76d20875503c17c6f5956d7f7bfde4eaa90ffbcd..01035e718c1cab90780cc3031fc5e69e853db2c1 100644 (file)
@@ -666,7 +666,7 @@ static inline struct search *search_alloc(struct bio *bio,
        s->iop.write_prio       = 0;
        s->iop.error            = 0;
        s->iop.flags            = 0;
-       s->iop.flush_journal    = (bio->bi_opf & (REQ_PREFLUSH|REQ_FUA)) != 0;
+       s->iop.flush_journal    = op_is_flush(bio->bi_opf);
        s->iop.wq               = bcache_wq;
 
        return s;