direct-io: use bio set/get op accessors
authorMike Christie <mchristi@redhat.com>
Sun, 5 Jun 2016 19:31:50 +0000 (14:31 -0500)
committerJens Axboe <axboe@fb.com>
Tue, 7 Jun 2016 19:41:38 +0000 (13:41 -0600)
commit8a4c1e42e0eb7189296ac140761370e2549cffe7
treedfd1177eea59caaed3bd502aa68c28ee69fb1004
parent469e3216e20a3946a292ff0414ab86de408d465e
direct-io: use bio set/get op accessors

This patch has the dio code use a REQ_OP for the op and rq_flag_bits
for bi_rw flags. To set/get the op it uses the bio_set_op_attrs/bio_op
accssors.

It also begins to convert btrfs's dio_submit_t because of the dio
submit_io callout use. The next patches will completely convert
this code and the reset of the btrfs code paths.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/btrfs/inode.c
fs/direct-io.c
include/linux/fs.h