bcachefs: bch2_alloc_write()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 11 Dec 2021 01:58:44 +0000 (20:58 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:18 +0000 (17:09 -0400)
commitfb0e480872ac858d836d5d6d713d0f31ae08c64d
tree56a051b917218b334c4368c5b7db026ab9339268
parent991ba0211290884df42f9506499aba7e933a2bb8
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>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/buckets.c
fs/bcachefs/recovery.c