summaryrefslogtreecommitdiff
path: root/c_src
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-07-15 16:54:30 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-07-15 20:17:37 -0400
commit32fbdff2a9954037bb55f3441281376cfcebb8ea (patch)
tree81064d0de40cc6d19991787b94e8ac3d46d62ddb /c_src
parent2d605676853ffd147f5f9591c833e44ab1d3e7a1 (diff)
Update bcachefs sources to 4a7a003763f5 bcachefs: Opt_durability can now be set via bch2_opt_set_sb()
Diffstat (limited to 'c_src')
-rw-r--r--c_src/libbcachefs.c2
-rw-r--r--c_src/posix_to_bcachefs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/c_src/libbcachefs.c b/c_src/libbcachefs.c
index 7f072d92..75cab72c 100644
--- a/c_src/libbcachefs.c
+++ b/c_src/libbcachefs.c
@@ -227,7 +227,7 @@ struct bch_sb *bch2_format(struct bch_opt_strs fs_opt_strs,
? bch2_opt_get_by_id(&fs_opts, opt_id)
: bch2_opt_get_by_id(&bch2_opts_default, opt_id);
- __bch2_opt_set_sb(sb.sb, &bch2_opt_table[opt_id], v);
+ __bch2_opt_set_sb(sb.sb, -1, &bch2_opt_table[opt_id], v);
}
struct timespec now;
diff --git a/c_src/posix_to_bcachefs.c b/c_src/posix_to_bcachefs.c
index 714eb47d..81750751 100644
--- a/c_src/posix_to_bcachefs.c
+++ b/c_src/posix_to_bcachefs.c
@@ -166,7 +166,7 @@ static void write_data(struct bch_fs *c,
closure_call(&op.cl, bch2_write, NULL, NULL);
- BUG_ON(!(op.flags & BCH_WRITE_DONE));
+ BUG_ON(!(op.flags & BCH_WRITE_SUBMITTED));
dst_inode->bi_sectors += len >> 9;
if (op.error)