gentoo-overlay/sys-kernel/hardened-kernel/files/linux-6.12/0019-bcachefs-lru-accountin...

33 lines
1.0 KiB
Diff

From f5037ae0441bc26678836db41693086b6eddd2ea Mon Sep 17 00:00:00 2001
From: Kent Overstreet <kent.overstreet@linux.dev>
Date: Sat, 21 Sep 2024 23:22:48 -0400
Subject: [PATCH 019/233] bcachefs: lru, accounting are alloc btrees
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
They can be regenerated by fsck and don't require a btree node scan,
like other alloc btrees.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
---
fs/bcachefs/bcachefs_format.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
index 6a67df2a2fcd..79a80a78c2d8 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;
--
2.45.2