diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-04 14:04:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-04 14:05:32 -0400 |
commit | 018de5aa899937a9dc3bc8cb9819cb218a59abf3 (patch) | |
tree | 554b99e5dafe04f5bf9201a3c54bd1b0f39f77f3 /libbcachefs/io_types.h | |
parent | c598d91dcb0c7e95abdacb2711898ae14ab52ca1 (diff) |
Update bcachefs sources to ed4aea2ad4 bcachefs: fix gcc warning
Diffstat (limited to 'libbcachefs/io_types.h')
-rw-r--r-- | libbcachefs/io_types.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/libbcachefs/io_types.h b/libbcachefs/io_types.h index a022ab33..28281ea6 100644 --- a/libbcachefs/io_types.h +++ b/libbcachefs/io_types.h @@ -14,6 +14,8 @@ struct bch_read_bio { struct bch_fs *c; + u64 start_time; + u64 submit_time; /* * Reads will often have to be split, and if the extent being read from @@ -35,17 +37,19 @@ struct bch_read_bio { */ struct bvec_iter bvec_iter; - unsigned submit_time_us; - u8 flags; + u16 flags; union { struct { - u8 bounce:1, + u16 bounce:1, split:1, + kmalloc:1, + have_ioref:1, narrow_crcs:1, + hole:1, retry:2, context:2; }; - u8 _state; + u16 _state; }; struct bch_devs_list devs_have; @@ -66,20 +70,20 @@ struct bch_read_bio { struct bch_write_bio { struct bch_fs *c; - struct bch_dev *ca; struct bch_write_bio *parent; + u64 submit_time; + struct bch_devs_list failed; u8 order; + u8 dev; unsigned split:1, bounce:1, put_bio:1, - have_io_ref:1, + have_ioref:1, used_mempool:1; - unsigned submit_time_us; - struct bio bio; }; @@ -87,6 +91,7 @@ struct bch_write_op { struct closure cl; struct bch_fs *c; struct workqueue_struct *io_wq; + u64 start_time; unsigned written; /* sectors */ u16 flags; |