summaryrefslogtreecommitdiff
path: root/libbcachefs/btree_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/btree_io.h')
-rw-r--r--libbcachefs/btree_io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbcachefs/btree_io.h b/libbcachefs/btree_io.h
index 61165a63..c8417ac3 100644
--- a/libbcachefs/btree_io.h
+++ b/libbcachefs/btree_io.h
@@ -2,6 +2,7 @@
#define _BCACHEFS_BTREE_IO_H
#include "extents.h"
+#include "io_types.h"
struct bch_fs;
struct btree_write;
@@ -17,6 +18,13 @@ struct btree_read_bio {
struct bio bio;
};
+struct btree_write_bio {
+ struct closure *cl;
+ void *data;
+ struct work_struct work;
+ struct bch_write_bio wbio;
+};
+
static inline void btree_node_io_unlock(struct btree *b)
{
EBUG_ON(!btree_node_write_in_flight(b));