]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/md/dm-kcopyd.c
block: unify flags for struct bio and struct request
[net-next-2.6.git] / drivers / md / dm-kcopyd.c
index addf83475040d326145d67bad45f535d40c41407..d8587bac5682f41673cc9a20695a146c30415a31 100644 (file)
@@ -345,7 +345,7 @@ static int run_io_job(struct kcopyd_job *job)
 {
        int r;
        struct dm_io_request io_req = {
-               .bi_rw = job->rw | (1 << BIO_RW_SYNCIO) | (1 << BIO_RW_UNPLUG),
+               .bi_rw = job->rw | REQ_SYNC | REQ_UNPLUG,
                .mem.type = DM_IO_PAGE_LIST,
                .mem.ptr.pl = job->pages,
                .mem.offset = job->offset,