diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 15:31:50 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 15:41:38 -0400 |
commit | 8a4c1e42e0eb7189296ac140761370e2549cffe7 (patch) | |
tree | dfd1177eea59caaed3bd502aa68c28ee69fb1004 /include/linux/fs.h | |
parent | 469e3216e20a3946a292ff0414ab86de408d465e (diff) |
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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 62ca2f9cad95..af6f3c7e4822 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2824,7 +2824,7 @@ extern int generic_file_open(struct inode * inode, struct file * filp); | |||
2824 | extern int nonseekable_open(struct inode * inode, struct file * filp); | 2824 | extern int nonseekable_open(struct inode * inode, struct file * filp); |
2825 | 2825 | ||
2826 | #ifdef CONFIG_BLOCK | 2826 | #ifdef CONFIG_BLOCK |
2827 | typedef void (dio_submit_t)(int rw, struct bio *bio, struct inode *inode, | 2827 | typedef void (dio_submit_t)(struct bio *bio, struct inode *inode, |
2828 | loff_t file_offset); | 2828 | loff_t file_offset); |
2829 | 2829 | ||
2830 | enum { | 2830 | enum { |