summaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-12-10 20:58:44 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:18 -0400
commitfb0e480872ac858d836d5d6d713d0f31ae08c64d (patch)
tree56a051b917218b334c4368c5b7db026ab9339268 /fs/bcachefs/recovery.c
parent991ba0211290884df42f9506499aba7e933a2bb8 (diff)
downloadlwn-fb0e480872ac858d836d5d6d713d0f31ae08c64d.tar.gz
lwn-fb0e480872ac858d836d5d6d713d0f31ae08c64d.zip
bcachefs: bch2_alloc_write()
This adds a new helper that much like the one we have for inode updates, that allocates the packed alloc key, packs it and calls bch2_trans_update. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index 460b1ba22c8e..29fe6260ace5 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -1238,7 +1238,7 @@ use_clean:
*/
bch_verbose(c, "writing allocation info");
err = "error writing out alloc info";
- ret = bch2_alloc_write(c, BTREE_INSERT_LAZY_RW);
+ ret = bch2_alloc_write_all(c, BTREE_INSERT_LAZY_RW);
if (ret) {
bch_err(c, "error writing alloc info");
goto err;