bcachefs: Put open_buckets in a hashtable
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 26 Dec 2021 02:43:29 +0000 (21:43 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:20 +0000 (17:09 -0400)
commit9ddffaf83b5ac7cf79917cfe9a1435cc07d071b6
tree1272deac11ba66146fe35a131a127724034e4e6e
parentabe19d458e8fffbebacaad3aad64604d2819913a
bcachefs: Put open_buckets in a hashtable

This is so that the copygc code doesn't have to refer to
bucket_mark.owned_by_allocator - assisting in getting rid of the in
memory bucket array.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/alloc_foreground.c
fs/bcachefs/alloc_foreground.h
fs/bcachefs/alloc_types.h
fs/bcachefs/bcachefs.h