diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-16 14:51:41 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-16 14:51:41 -0800 |
commit | bb1941de5378a7b8122d3575dcbc7d0aeb6326f0 (patch) | |
tree | fb0920334591a34e2673c3cfc63d07ac20ba0b92 /libbcache/io_types.h | |
parent | ac296ad4dcd32a4e7618716782fc3f2b69d03a74 (diff) |
update bcache sourcesdev
Diffstat (limited to 'libbcache/io_types.h')
-rw-r--r-- | libbcache/io_types.h | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/libbcache/io_types.h b/libbcache/io_types.h index 3d09687..ca1b019 100644 --- a/libbcache/io_types.h +++ b/libbcache/io_types.h @@ -29,29 +29,29 @@ struct bch_read_bio { */ struct bvec_iter parent_iter; - /* - * If we have to retry the read (IO error, checksum failure, read stale - * data (raced with allocator), we retry the portion of the parent bio - * that failed (i.e. this bio's portion, parent_iter). - * - * But we need to stash the inode somewhere: - */ - u64 inode; - unsigned submit_time_us; u16 flags; u8 bounce:1, split:1; - struct bversion version; - struct bch_extent_crc128 crc; - struct bch_extent_ptr ptr; + struct bch_fs *c; struct bch_dev *ca; + struct bch_extent_ptr ptr; + struct bch_extent_crc128 crc; + struct bversion version; struct cache_promote_op *promote; - /* bio_decompress_worker list */ - struct llist_node list; + /* + * If we have to retry the read (IO error, checksum failure, read stale + * data (raced with allocator), we retry the portion of the parent bio + * that failed (i.e. this bio's portion, parent_iter). + * + * But we need to stash the inode somewhere: + */ + u64 inode; + + struct work_struct work; struct bio bio; }; @@ -63,7 +63,7 @@ bch_rbio_parent(struct bch_read_bio *rbio) } struct bch_write_bio { - struct bch_fs *c; + struct bch_fs *c; struct bch_dev *ca; union { struct bio *orig; @@ -142,10 +142,4 @@ struct bch_write_op { u64 inline_keys[BKEY_EXTENT_U64s_MAX * 2]; }; -struct bio_decompress_worker { - struct bch_fs *c; - struct work_struct work; - struct llist_head bio_list; -}; - #endif /* _BCACHE_IO_TYPES_H */ |