diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-12 21:40:59 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-12 21:41:03 -0500 |
commit | e160e9b97986d908bce40ab40ee5d930453a3bf1 (patch) | |
tree | 5ca41b36845ed409c4f97ed94d601fb8a8859455 /libbcachefs/ec.c | |
parent | 157ea20eb26e214374e917813a78ecf6068db76e (diff) |
Update bcachefs sources to 3e0c5b0722 fixup! bcachefs: Btree write buffer
Diffstat (limited to 'libbcachefs/ec.c')
-rw-r--r-- | libbcachefs/ec.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libbcachefs/ec.c b/libbcachefs/ec.c index 9f5a27da..3ebe699f 100644 --- a/libbcachefs/ec.c +++ b/libbcachefs/ec.c @@ -9,6 +9,7 @@ #include "bset.h" #include "btree_gc.h" #include "btree_update.h" +#include "btree_write_buffer.h" #include "buckets.h" #include "disk_groups.h" #include "ec.h" @@ -921,13 +922,16 @@ static int ec_stripe_update_extents(struct bch_fs *c, struct ec_stripe_buf *s) bch2_trans_init(&trans, c, 0, 0); + ret = bch2_btree_write_buffer_flush(&trans); + if (ret) + goto err; + for (i = 0; i < nr_data; i++) { ret = ec_stripe_update_bucket(&trans, s, i); if (ret) break; } - - +err: bch2_trans_exit(&trans); return ret; |