bcachefs: Improvements to writing alloc info
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 17 Oct 2020 01:36:26 +0000 (21:36 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:44 +0000 (17:08 -0400)
commit8d6b6222bf168e7a0613c0baf3da30f2c7338488
tree9383479950f265e5834f442d3879c63fa9bda486
parentaa8889c07abecd7db7b2c0beb61db921fbafe04f
bcachefs: Improvements to writing alloc info

Now that we've got transactional alloc info updates (and have for
awhile), we don't need to write it out on shutdown, and we don't need to
write it out on startup except when GC found errors - this is a big
improvement to mount/unmount performance.

This patch also fixes a few bugs where we weren't writing out alloc
info (on new filesystems, and new devices) and should have been.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/btree_gc.c
fs/bcachefs/ec.c
fs/bcachefs/ec.h
fs/bcachefs/recovery.c
fs/bcachefs/super.c