mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
dm: use bio op accessors
Separate the op from the rq_flag_bits and have dm set/get the bio using bio_set_op_attrs/bio_op. Signed-off-by: Mike Christie <mchristi@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
528ec5abe6
commit
e6047149db
14 changed files with 99 additions and 80 deletions
|
@ -57,7 +57,8 @@ struct dm_io_notify {
|
|||
*/
|
||||
struct dm_io_client;
|
||||
struct dm_io_request {
|
||||
int bi_rw; /* READ|WRITE - not READA */
|
||||
int bi_op; /* REQ_OP */
|
||||
int bi_op_flags; /* rq_flag_bits */
|
||||
struct dm_io_memory mem; /* Memory to use for io */
|
||||
struct dm_io_notify notify; /* Synchronous if notify.fn is NULL */
|
||||
struct dm_io_client *client; /* Client memory handler */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue