summaryrefslogtreecommitdiff
path: root/libbcachefs/io_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/io_types.h')
-rw-r--r--libbcachefs/io_types.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libbcachefs/io_types.h b/libbcachefs/io_types.h
index ed9a4bbe..ff18fdc9 100644
--- a/libbcachefs/io_types.h
+++ b/libbcachefs/io_types.h
@@ -6,6 +6,7 @@
#include "buckets_types.h"
#include "extents_types.h"
#include "keylist_types.h"
+#include "opts.h"
#include "super_types.h"
#include <linux/llist.h>
@@ -56,6 +57,8 @@ struct bch_read_bio {
struct promote_op *promote;
+ struct bch_io_opts opts;
+
struct work_struct work;
struct bio bio;
@@ -69,8 +72,7 @@ struct bch_write_bio {
struct closure *cl;
};
- u8 ptr_idx;
- u8 replicas_failed;
+ struct bch_devs_list failed;
u8 order;
unsigned split:1,
@@ -90,8 +92,8 @@ struct bch_write_op {
struct bch_fs *c;
struct workqueue_struct *io_wq;
+ unsigned written; /* sectors */
u16 flags;
- u16 written; /* sectors */
s8 error;
unsigned csum_type:4;