]> git.baikalelectronics.ru Git - kernel.git/commit
block: add REQ_OP definitions and helpers
authorMike Christie <mchristi@redhat.com>
Sun, 5 Jun 2016 19:31:42 +0000 (14:31 -0500)
committerJens Axboe <axboe@fb.com>
Tue, 7 Jun 2016 19:41:38 +0000 (13:41 -0600)
commitc4acc17450290dd71f41633351df869330a47f87
tree4b85b32a065cf6c28ccd2ad1a2960ec6f4b67634
parent072dff0f5ee30661530917bd345abf82a1e7e22c
block: add REQ_OP definitions and helpers

The following patches separate the operation (WRITE, READ, DISCARD,
etc) from the rq_flag_bits flags. This patch adds definitions for
request/bio operations (REQ_OPs) and adds request/bio accessors to
get/set the op.

In this patch the REQ_OPs match the REQ rq_flag_bits ones
for compat reasons while all the code is converted to use the
op accessors in the set. In the last patches the op will become a
number and the accessors and helpers in this patch will be dropped
or updated.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/bio.h
include/linux/blk_types.h
include/linux/blkdev.h
include/linux/fs.h