diff options
author | Christoph Hellwig <hch@lst.de> | 2016-11-01 09:40:10 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-01 11:43:26 -0400 |
commit | 70fd76140a6cb63262bd47b68d57b42e889c10ee (patch) | |
tree | 0590b2ef1b89b6af6abb8da9d23d5d87991d74c8 /drivers/md/bcache/request.c | |
parent | a2b809672ee6fcb4d5756ea815725b3dbaea654e (diff) |
block,fs: use REQ_* flags directly
Remove the WRITE_* and READ_SYNC wrappers, and just use the flags
directly. Where applicable this also drops usage of the
bio_set_op_attrs wrapper.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r-- | drivers/md/bcache/request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index e8a2b693c928..0d99b5f4b3e6 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c | |||
@@ -923,7 +923,7 @@ static void cached_dev_write(struct cached_dev *dc, struct search *s) | |||
923 | flush->bi_bdev = bio->bi_bdev; | 923 | flush->bi_bdev = bio->bi_bdev; |
924 | flush->bi_end_io = request_endio; | 924 | flush->bi_end_io = request_endio; |
925 | flush->bi_private = cl; | 925 | flush->bi_private = cl; |
926 | bio_set_op_attrs(flush, REQ_OP_WRITE, WRITE_FLUSH); | 926 | flush->bi_opf = REQ_OP_WRITE | REQ_PREFLUSH; |
927 | 927 | ||
928 | closure_bio_submit(flush, cl); | 928 | closure_bio_submit(flush, cl); |
929 | } | 929 | } |