diff options
Diffstat (limited to 'libbcachefs/io_read.h')
-rw-r--r-- | libbcachefs/io_read.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/libbcachefs/io_read.h b/libbcachefs/io_read.h index edcf50a4..cd219504 100644 --- a/libbcachefs/io_read.h +++ b/libbcachefs/io_read.h @@ -36,7 +36,8 @@ struct bch_read_bio { u16 flags; union { struct { - u16 promote:1, + u16 data_update:1, + promote:1, bounce:1, split:1, have_ioref:1, @@ -109,7 +110,6 @@ static inline int bch2_read_indirect_extent(struct btree_trans *trans, x(retry_if_stale) \ x(may_promote) \ x(user_mapped) \ - x(data_update) \ x(last_fragment) \ x(must_bounce) \ x(must_clone) \ @@ -163,12 +163,13 @@ static inline struct bch_read_bio *rbio_init_fragment(struct bio *bio, { struct bch_read_bio *rbio = to_rbio(bio); - rbio->c = orig->c; - rbio->_state = 0; - rbio->ret = 0; - rbio->split = true; - rbio->parent = orig; - rbio->opts = orig->opts; + rbio->c = orig->c; + rbio->_state = 0; + rbio->flags = 0; + rbio->ret = 0; + rbio->split = true; + rbio->parent = orig; + rbio->opts = orig->opts; return rbio; } @@ -182,7 +183,8 @@ static inline struct bch_read_bio *rbio_init(struct bio *bio, rbio->start_time = local_clock(); rbio->c = c; rbio->_state = 0; - rbio->ret = 0; + rbio->flags = 0; + rbio->ret = 0; rbio->opts = opts; rbio->bio.bi_end_io = end_io; return rbio; |