Message ID | 45586f6889c79d6e1708b2b78ee9043b15cf6dff.1688599734.git.boris@bur.io (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: simple quotas | expand |
On Wed, Jul 05, 2023 at 04:36:27PM -0700, Boris Burkov wrote: > 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. > > Signed-off-by: Boris Burkov <boris@bur.io> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Thanks, Josef
diff --git a/kernel-shared/tree-checker.c b/kernel-shared/tree-checker.c index 107975891..2f834cf33 100644 --- a/kernel-shared/tree-checker.c +++ b/kernel-shared/tree-checker.c @@ -1477,6 +1477,8 @@ 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: + break; default: extent_err(leaf, slot, "unknown inline ref type: %u", inline_type);
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. Signed-off-by: Boris Burkov <boris@bur.io> --- kernel-shared/tree-checker.c | 2 ++ 1 file changed, 2 insertions(+)