Thread (16 messages) 16 messages, 1 author, 2021-12-15
STALE1672d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 04/15] btrfs-progs: check: calculate normal flags for extent tree v2 metadata

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

Metadata in extent tree v2 will not have FULL_BACKREF set, so simply
calculate normal flags for any metadata blocks we find.

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 ed38709b..1b3ea079 100644
--- a/check/main.c
+++ b/check/main.c
@@ -6172,6 +6172,9 @@ static int calc_extent_flag(struct cache_tree *extent_cache,
 
 	rec = container_of(cache, struct extent_record, cache);
 
+	if (btrfs_fs_incompat(gfs_info, EXTENT_TREE_V2))
+		goto normal;
+
 	/*
 	 * Except file/reloc tree, we can not have
 	 * FULL BACKREF MODE
-- 
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