bcachefs: Refactor bch2_alloc_write()
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 27 Aug 2019 21:45:42 +0000 (17:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:26 +0000 (17:08 -0400)
commit6671a7089fdcdd8f25f6b4729fdc066f7c42edfd
tree1542bfb2061208ac78314d5f4df0c51184b816cc
parent67163cded330c1d952ae440b21752f4b609585fd
bcachefs: Refactor bch2_alloc_write()

Major simplification - gets rid of the need for marking buckets as
dirty, instead we write buckets if the in memory mark is different from
what's in the btree.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/bcachefs.h
fs/bcachefs/btree_gc.c
fs/bcachefs/buckets.c
fs/bcachefs/buckets_types.h