aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-12-06 15:40:57 +0100
committerJens Axboe <axboe@kernel.dk>2022-12-07 09:43:12 -0700
commitc34b7ac65087554627f4840f4ecd6f2107a68fd1 (patch)
treecb4a56b85e6a88654f65b953adb3fcd104ee0560 /drivers/md/bcache/request.c
parentblock: bio_copy_data_iter (diff)
downloadwireguard-linux-c34b7ac65087554627f4840f4ecd6f2107a68fd1.tar.xz
wireguard-linux-c34b7ac65087554627f4840f4ecd6f2107a68fd1.zip
block: remove bio_set_op_attrs
This macro is obsolete, so replace the last few uses with open coded bi_opf assignments. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Coly Li <colyli@suse.de <mailto:colyli@suse.de>> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20221206144057.720846-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 3427555b0cca..39c7b607f8aa 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -244,7 +244,7 @@ static void bch_data_insert_start(struct closure *cl)
trace_bcache_cache_insert(k);
bch_keylist_push(&op->insert_keys);
- bio_set_op_attrs(n, REQ_OP_WRITE, 0);
+ n->bi_opf = REQ_OP_WRITE;
bch_submit_bbio(n, op->c, k, 0);
} while (n != bio);