]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bcachefs_metadata_version_disk_accounting_big_endian
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 29 Nov 2024 22:41:43 +0000 (17:41 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 29 Dec 2024 18:30:39 +0000 (13:30 -0500)
commitba9752e5f43637096d636abb934b8172fc23ea62
tree85e929668d4a813050ca6ed6a50dc918282eba62
parentebdca072683844e04fe8bd31f64745554b9119d4
bcachefs: bcachefs_metadata_version_disk_accounting_big_endian

Fix sort order for disk accounting keys, in order to fix a regression on
mount times.

The typetag is now the most significant byte of the key, meaning disk
accounting keys of the same type now sort together.

This lets us skip over disk accounting keys that aren't mirrored in
memory when reading accounting at startup, instead of having them
interleaved with other counter types.

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