From mboxrd@z Thu Jan 1 00:00:00 1970 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 A30ECC4332F for ; Wed, 28 Dec 2022 23:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230388AbiL1Xcr (ORCPT ); Wed, 28 Dec 2022 18:32:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbiL1Xcp (ORCPT ); Wed, 28 Dec 2022 18:32:45 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4224120A9 for ; Wed, 28 Dec 2022 15:32:44 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AA4C77602C for ; Wed, 28 Dec 2022 23:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1672270362; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LuP+Jh6RiBKx8yPVKEb7gU1BpPny46Vr0qiLomeFh+s=; b=JZ/4lmIfak/9GNcoSELdwxWjqepvncOj2n7LXhG2kmRcmAXj1nWILtzaL4WVDO6Uh0GHHj WIYRxVY1l9SSuIDRM9+2QLbWJP8CIGcG/ow89rUDN2FymUAgO1k9dE9of/u7pl3OgIK/TQ L6hyULMPNL6HeOhonWpPcY6jy3ilBi4= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F3902138F9 for ; Wed, 28 Dec 2022 23:32:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Q0DMLhnSrGP/BAAAMHmgww (envelope-from ) for ; Wed, 28 Dec 2022 23:32:41 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/2] btrfs: fixes for commit 947a629988f1 ("btrfs: move tree block parentness check into validate_extent_buffer()") Date: Thu, 29 Dec 2022 07:32:22 +0800 Message-Id: X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org There is a regression report from Mikhail that his btrfs RAID0 fs randomly flips to RO after commit 947a629988f1. It turns out that, the offending commit can not handle tree blocks crossing stripe boundary. Although tree blocks crossing stripe boundary is not an ideal situation, we should still be able to correctly handle it. This patchset firstly adds the missing level mismatch error message, then fix the offending commit. Qu Wenruo (2): btrfs: add error message for metadata level mismatch btrfs: fix the false alert on bad tree level fs/btrfs/disk-io.c | 4 ++++ fs/btrfs/extent_io.c | 31 ++++++++++++++++++++++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) -- 2.39.0