bcachefs: Improve alloc_mem_to_key()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 11 Dec 2021 02:24:36 +0000 (21:24 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:18 +0000 (17:09 -0400)
commit20572300dcc537c22b435a1f01b810a9d7c140c9
tree64d4859c40c84524fd33d878d1460f5f7a5cdef4
parentfb0e480872ac858d836d5d6d713d0f31ae08c64d
bcachefs: Improve alloc_mem_to_key()

This moves some common code into alloc_mem_to_key(), which translates
from the in-memory format for a bucket to the btree key format.

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