bcachefs: Fixes for startup on very full filesystems

- Always pass BTREE_INSERT_USE_RESERVE when writing alloc btree keys
 - Don't strand buckest on the copygc freelist until after recovery is
   done and we're starting copygc.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2020-05-11 20:01:07 -04:00 • committed by Kent Overstreet
commit a9310ab06c
2 changed files with 16 additions and 3 deletions