diff mbox series

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

Message ID cecfbc39beee3ac60d08c1512a4fda5e754caf24.1638382588.git.josef@toxicpanda.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: extent tree v2 support, global roots | expand

Commit Message

Josef Bacik Dec. 1, 2021, 6:17 p.m. UTC
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 mbox series

Patch

diff --git a/check/main.c b/check/main.c
index 6be22d77..831f7d0d 100644
--- a/check/main.c
+++ b/check/main.c
@@ -10078,6 +10078,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();