]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Handle -BCH_ERR_need_mark_replicas in gc
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Dec 2024 18:58:02 +0000 (13:58 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 10 Jan 2025 04:38:41 +0000 (23:38 -0500)
commitcf3da2d627037a0848e25dbaeaedfadfe534c7c4
treec31d4822980b4a5c05b29dbbcac414413b850994
parent861cd0f60624440b51e3ff14b04055b59c13d1e4
bcachefs: Handle -BCH_ERR_need_mark_replicas in gc

Locking considerations (possibly no longer relevant?) mean that when an
accounting update needs a new superblock replicas entry to be created,
it's deferred to the transaction commit error path.

But accounting updates for gc/fcsk aren't done from the transaction
commit path - so we need to handle
-BCH_ERR_btree_insert_need_mark_replicas locally.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/disk_accounting.c