]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/io_types.h
New upstream release
[bcachefs-tools-debian] / libbcachefs / io_types.h
index 4e5d31060b5760a5bc4b8dbc511bcd54d6070030..737f16d78c48e50c3a325124c9f4f2ea4418388e 100644 (file)
@@ -83,6 +83,7 @@ struct bch_read_bio {
 };
 
 struct bch_write_bio {
+       struct_group(wbio,
        struct bch_fs           *c;
        struct bch_write_bio    *parent;
 
@@ -99,6 +100,7 @@ struct bch_write_bio {
                                nocow:1,
                                used_mempool:1,
                                first_btree_write:1;
+       );
 
        struct bio              bio;
 };
@@ -113,13 +115,13 @@ struct bch_write_op {
        u16                     flags;
        s16                     error; /* dio write path expects it to hold -ERESTARTSYS... */
 
+       unsigned                compression_opt:8;
        unsigned                csum_type:4;
-       unsigned                compression_type:4;
        unsigned                nr_replicas:4;
        unsigned                nr_replicas_required:4;
-       unsigned                alloc_reserve:3;
+       unsigned                watermark:3;
        unsigned                incompressible:1;
-       unsigned                btree_update_ready:1;
+       unsigned                stripe_waited:1;
 
        struct bch_devs_list    devs_have;
        u16                     target;