From fe7bcc5d7bdc52f7d4a0a8556c17572696c468bf Mon Sep 17 00:00:00 2001 From: Boris Burkov Date: Wed, 27 Sep 2023 10:46:49 -0700 Subject: [PATCH] btrfs-progs: tree-checker: handle owner ref items Add the new OWNER_REF inline items to the tree-checker extent item checking code. We could somehow validate the root id for being a valid fstree id, but just skipping it seems fine as well. Reviewed-by: Josef Bacik Signed-off-by: Boris Burkov Signed-off-by: David Sterba --- kernel-shared/tree-checker.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel-shared/tree-checker.c b/kernel-shared/tree-checker.c index 10797589..0d5c62e9 100644 --- a/kernel-shared/tree-checker.c +++ b/kernel-shared/tree-checker.c @@ -1477,6 +1477,9 @@ static int check_extent_item(struct extent_buffer *leaf, } inline_refs += btrfs_shared_data_ref_count(leaf, sref); break; + case BTRFS_EXTENT_OWNER_REF_KEY: + /* Root id could be verified as well. */ + break; default: extent_err(leaf, slot, "unknown inline ref type: %u", inline_type);