Thread (23 messages) 23 messages, 1 author, 2021-12-15
DORMANTno replies
Revisions (4)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v2 [diff vs current]
  4. v4 current

[PATCH v4 22/22] btrfs-progs: check: don't do the root item check for extent tree v2

From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-12-15 20:00:40
Subsystem: the rest · Maintainer: Linus Torvalds

With the current set of changes we could probably do this check, but it
would involve changing the code quite a bit, and in the future we're not
going to track the metadata in the extent tree at all.  Since this check
was for a very old kernel just skip it for extent tree v2.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 check/main.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/check/main.c b/check/main.c
index 36352543..0eab91b5 100644
--- a/check/main.c
+++ b/check/main.c
@@ -10091,6 +10091,9 @@ static int repair_root_items(void)
 	int bad_roots = 0;
 	int need_trans = 0;
 
+	if (btrfs_fs_incompat(gfs_info, EXTENT_TREE_V2))
+		return 0;
+
 	btrfs_init_path(&path);
 
 	ret = build_roots_info_cache();
-- 
2.26.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help