From: Kent Overstreet Date: Sun, 22 Sep 2024 03:22:48 +0000 (-0400) Subject: bcachefs: lru, accounting are alloc btrees X-Git-Tag: v6.14-rc1~204^2~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26c79fdc580d27c08c050789c523ce89e9a0da44;p=thirdparty%2Flinux.git bcachefs: lru, accounting are alloc btrees They can be regenerated by fsck and don't require a btree node scan, like other alloc btrees. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index 6a67df2a2fcd9..79a80a78c2d83 100644 --- a/fs/bcachefs/bcachefs_format.h +++ b/fs/bcachefs/bcachefs_format.h @@ -1359,6 +1359,8 @@ static inline bool btree_id_is_alloc(enum btree_id id) case BTREE_ID_need_discard: case BTREE_ID_freespace: case BTREE_ID_bucket_gens: + case BTREE_ID_lru: + case BTREE_ID_accounting: return true; default: return false;