From patchwork Thu Jul 20 22:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Burkov X-Patchwork-Id: 13321177 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3A39EB64DD for ; Thu, 20 Jul 2023 22:59:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbjGTW7J (ORCPT ); Thu, 20 Jul 2023 18:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjGTW7I (ORCPT ); Thu, 20 Jul 2023 18:59:08 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE12492 for ; Thu, 20 Jul 2023 15:59:07 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2BE835C00E6; Thu, 20 Jul 2023 18:59:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 20 Jul 2023 18:59:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bur.io; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1689893947; x= 1689980347; bh=FPfZW8KTO1u0eOV7SXtgI+mcaKyJGD+tGIo2ZSVwOCs=; b=X IzxUc4dkCLVgD6EJ1U4VeUxlV6fo6Qy4nfHkHx1zVWxz3+osMk+zr18gAHzx9JSO Pa4JBYAuTzw+nWigXVbaVjrMAgeMsoFYI7dh2BvXRb5OZVBayO19v6RRY6/y4NsN /8Op4gKd7yEQ9y1yhhDf2vJbHtVDG6iMNIrGRKxccLbIQOuYD1eMmBxAy3V3rJuf V6MhOgumPtbqI5RdyNUUV4gTDe5cvYLNJsDLyMsbPKMfzxNXHirlMptxO4y0NX9l fvDSraizL3Ua9ot5dMmxg8R0oJkC1q9DdFQobDjzLkICsTZTbKAItKC7KeKuw6MQ iKJ3FUFgE+NNyh9YpZWLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1689893947; x=1689980347; bh=F PfZW8KTO1u0eOV7SXtgI+mcaKyJGD+tGIo2ZSVwOCs=; b=sXtyjHvws9lFXGvr5 S68E6xpVT4nLBsRD+d/i1C0GzAUzMvzTlaRRhpMynIF4aRl2Dyr3mM18D5+XHibQ VzAR6LzQCzLPQgIMk2PVaTvbJQ/eBwDUuSI625eItq1RHkoHUTH1532K5Kycljln xCx98H7AmO4BhTX2kF15UVkc6DVwdHKt1OCGEYxRLAmnAA0gQogc9anV3+IdnOoE RZXJZ7RUTdHQ7/qKIHo9+RhqU4dpEDrypVI0BldK6q2/t/r6OARFd1jGJrMVWdiD nBlSFfBeR4Mpq/hBLwbT89CbcRhDzOJxVMQ5uxvTjDcPQWfUb0bartStKEEyazrZ +tJwA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedugdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeeuohhrihhsuceuuhhrkhhovhcuoegsohhrihhssegsuhhrrdhi oheqnecuggftrfgrthhtvghrnhepieeuffeuvdeiueejhfehiefgkeevudejjeejffevvd ehtddufeeihfekgeeuheelnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehm rghilhhfrhhomhepsghorhhishessghurhdrihho X-ME-Proxy: Feedback-ID: i083147f8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Jul 2023 18:59:06 -0400 (EDT) From: Boris Burkov To: linux-btrfs@vger.kernel.org, kernel-team@fb.com Subject: [PATCH v2 8/8] btrfs-progs: tree-checker: handle owner ref items Date: Thu, 20 Jul 2023 15:57:24 -0700 Message-ID: <207564817d028dd21505936c8f7f25a037d89f59.1689893698.git.boris@bur.io> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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 Reviewed-by: Josef Bacik --- kernel-shared/tree-checker.c | 2 ++ 1 file changed, 2 insertions(+) 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);