From patchwork Wed Jul 31 20:43:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 13749190 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A2E72110E; Wed, 31 Jul 2024 20:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458608; cv=none; b=KPaA2t6j0CxWSS8tq+ucVl99cstzef1ySCjSEE1HTNipq7c295SgmZA34XwlbJVbh05NVZcUPT1yZxdyIke17fahZ3ru/fA4pHjYY/ZHn1+GddlDC0EZOyitqTqR6MxbD+IhTTn/WfmZiR50cFMy3903eU3+A0dxl1Aca6T94m0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458608; c=relaxed/simple; bh=VDkXkOu95iRKfI1QI70fg/XiU7AQpQVT4RoxVTbIVCk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bOa4UQGOuBoGyUCR5RKbtFqej/W3IPiCvlKPoPQOskjoHeaX7L2Iy8synTDqFPEF6G8r0R+yojwwcQETwtkjtmUmC94M0QenFdWHLIzsQQKO5o7xSrYDlsGToq7HxfeDftISZyOtOnIdKKoDMfR418u71EcXFkIGp/puGOdjCnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5b214865fecso4855545a12.1; Wed, 31 Jul 2024 13:43:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722458605; x=1723063405; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6NhD4GJEVaHbjX7LJvdBP09V5td3sJ0qN7X/ZBapLj8=; b=EOHRlFFKwzz1zyj3klUMk0DT1nWA1ZDq4MTLJyejdEFoQ1Zh9/eNhIF/JnuF1iORmS RmXv7wWhg3+tmtrbdXx8jWgrL2luPkqLra74OpPj77DRpY5gTlmfNsi72+IxzvbdYcuG jxpae7cGdFx1g3oq5NPlu85ruXdM/8DPeRtBxGnb2PIuu7BxoT87qh+pydlckKdvJjg8 CEzCA+WQimMNf6Ue3MHUrGrkRI5g5PWcp+RTxh1Susuzip+piFj5DJoK4/LUhC697Oki g6lPivhpu5BHRr2rV51mxQHlN7ZzWtmTjnkRf03n9ztWc0Qm48gYXb4SRYS8RJuCx2Ky 3Q+g== X-Forwarded-Encrypted: i=1; AJvYcCUWsD4yHAEmBWfvafSvQygs56Daw9l9QrXVDVMRzbsOvJZ1VdSWAJGdHWCnNsgCwD1HEWU6+wA7ojvJ098CH1LZq/ND9RZAMxGXC7EW X-Gm-Message-State: AOJu0YynRILxsfLiP7Wofduz5ivqad8eHbQN2zVS23Hm9BJfXQ3wNoFG c2c4Xo80B1GKDuhGFYegM7cC52zI5U8QlxFHWRz8SntAa6RGdZ4oYPATBg== X-Google-Smtp-Source: AGHT+IFInUDg/rhkFfJNcvmpaW/gBMLOjZhUNuD/sPrdAG974OoCLlKUzMrh+z99rO4ZOt6swxjUAQ== X-Received: by 2002:a17:907:7d94:b0:a7a:8cfb:6568 with SMTP id a640c23a62f3a-a7dafd5a938mr21992866b.57.1722458604370; Wed, 31 Jul 2024 13:43:24 -0700 (PDT) Received: from [127.0.0.1] (p200300f6f732f200fa633ffffe02074c.dip0.t-ipconnect.de. [2003:f6:f732:f200:fa63:3fff:fe02:74c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab4dec6sm807454366b.61.2024.07.31.13.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 13:43:24 -0700 (PDT) From: Johannes Thumshirn Date: Wed, 31 Jul 2024 22:43:03 +0200 Subject: [PATCH v3 1/5] btrfs: don't dump stripe-tree on lookup error Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240731-debug-v3-1-f9b7ed479b10@kernel.org> References: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> In-Reply-To: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Thumshirn , Qu Wenruo X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=947; i=jth@kernel.org; h=from:subject:message-id; bh=oxl8FXfjys2Y/6Kc1JUEnnmrZBWUyrK/iztpd2u46IA=; b=owGbwMvMwCV2ad4npfVdsu8YT6slMaStWvgyz8aGc8LyT2k7Yn8Is6SxllVfXbhr7ixdb5nI4 CynxxXTO0pZGMS4GGTFFFmOh9rulzA9wj7l0GszmDmsTCBDGLg4BeAmn2NkeHaGl3vh2+WSyoKO vn/W3bK+/qdqz4SDR8KWNjcvV2kVcmBkuHrwbrmoWzJLztXyasfHxWm/ugT6qrPkAhx5J3L2v13 DCgA= X-Developer-Key: i=jth@kernel.org; a=openpgp; fpr=EC389CABC2C4F25D8600D0D00393969D2D760850 From: Johannes Thumshirn This just creates unnecessary noise and doesn't provide any insights into debugging RAID stripe-tree related issues. Reviewed-by: Josef Bacik Reviewed-by: Qu Wenruo Signed-off-by: Johannes Thumshirn --- fs/btrfs/raid-stripe-tree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/btrfs/raid-stripe-tree.c b/fs/btrfs/raid-stripe-tree.c index bd06ff795691..c1c74f310e8b 100644 --- a/fs/btrfs/raid-stripe-tree.c +++ b/fs/btrfs/raid-stripe-tree.c @@ -284,8 +284,6 @@ int btrfs_get_raid_extent_offset(struct btrfs_fs_info *fs_info, if (ret > 0) ret = -ENOENT; if (ret && ret != -EIO && !stripe->is_scrub) { - if (IS_ENABLED(CONFIG_BTRFS_DEBUG)) - btrfs_print_tree(leaf, 1); btrfs_err(fs_info, "cannot find raid-stripe for logical [%llu, %llu] devid %llu, profile %s", logical, logical + *length, stripe->dev->devid, From patchwork Wed Jul 31 20:43:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 13749191 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AC361684A7; Wed, 31 Jul 2024 20:43:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458609; cv=none; b=kFJL0RObDVyu7j0U//OHzSCJJh88SkVApUFKKaE+7OH0L27P5H4TvLgqzeh1acQVZ6PI4VVa4xqIY4NCyUO0Sde/YJM5KcEg0xL+MDhrpbvKTE9S1FlG5oFgjDZsrVA2Q9+tBAhYaZUkLztb6ar2z9djR/I++4aNbg+ht2mI1ao= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458609; c=relaxed/simple; bh=7TbeDsKXJvGad5Ts6keLBQjavxJq1zeKUjYg/JJnKCc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ug2sdeR0kWa9i7zxeBYzpheiq6shLY6eGN2uXpkhTTH39po0u2O6OACREglt0l6QSc47mdLdtQEx+ZxQILkAVqteJjO7TJbP3AVRW9LBOHIGU3mdAm2uwiUZ1WF5x1yKNEYbPdOGP7a2059fZXlJoZfrLmbox6RXKQk7uO4rArE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a7abe5aa9d5so717369166b.1; Wed, 31 Jul 2024 13:43:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722458606; x=1723063406; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eT7oFTQ6Sowbdm+xO/cDuLRyJLq8hSrrkBPbaTkA1sw=; b=sAEkHZQEJQxvLC2Xnguj/Y788T0aRkpnc8JzuD6KKRz33uz2jh5gpVCjPJJZd0W2sg K7tlKbasXKL94Owqji8YCfO3vgzM+b7G9+xguO83mH/X+jxzZLv6MX51dP8TYMimAihL fMACXgzD0462ZnzbmynjP0VppwxNsSRG0EyALhseNuUjD1gKrKMts1+sKvCQpbXXK/ql MfMWrUKK2zLflqgHp2G/TcmIPUAOAlbw9QIOPL3/nDhBZIaResKLw/hrOX3bv4wY7X0U xh1GUFjQsQxgnkbAFFVtJCTF4Pgvc9ClbgBFSxibzAKFEO6lwykPo6LJFd/rYzLS7FCp QMQA== X-Forwarded-Encrypted: i=1; AJvYcCVbi146WATKN0NkhsvT80g38jSni7Nysun6NQfiH7iWsTfqwmTH4Txl428SeEWBHvXgyAVZIyrQn23cjdaE+qWi+9LSPHy7YI/Nl/Dd X-Gm-Message-State: AOJu0Yx3UbY0m+GetQTtTkpwMi3RYXTWJ2ui4NXl491HDdJgPKdogc1c ZRMEMABqR6rWUAuVCkoBg6dubJu64Xs5pnBjmsQBjyaL5l65eFcDC5I6eA== X-Google-Smtp-Source: AGHT+IEnQmfLkPGszSqIjOVisoimKTIcDY8APejDKb0Kng18XAPyL4uv9Tvt90G6s13an3c4b6MhCg== X-Received: by 2002:a17:907:160d:b0:a77:dcda:1fe1 with SMTP id a640c23a62f3a-a7daf53a34cmr19519566b.25.1722458605409; Wed, 31 Jul 2024 13:43:25 -0700 (PDT) Received: from [127.0.0.1] (p200300f6f732f200fa633ffffe02074c.dip0.t-ipconnect.de. [2003:f6:f732:f200:fa63:3fff:fe02:74c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab4dec6sm807454366b.61.2024.07.31.13.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 13:43:25 -0700 (PDT) From: Johannes Thumshirn Date: Wed, 31 Jul 2024 22:43:04 +0200 Subject: [PATCH v3 2/5] btrfs: rename btrfs_io_stripe::is_scrub to rst_search_commit_root Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240731-debug-v3-2-f9b7ed479b10@kernel.org> References: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> In-Reply-To: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Thumshirn , Qu Wenruo X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2887; i=jth@kernel.org; h=from:subject:message-id; bh=7mQ8HznYTYuuf96GOY5iEqVDono4DkJl7eM5YKDGOx4=; b=owGbwMvMwCV2ad4npfVdsu8YT6slMaStWvhyukQoo0mFTzvH1LYLLDpL3u06amTcbpjKasmZM 2nye2HNjlIWBjEuBlkxRZbjobb7JUyPsE859NoMZg4rE8gQBi5OAZjIfnmGv7Jb2cItPiczzzg0 8RJvzCqnW1IpEzvYl5mJSJ1tlv2/WJWR4drVefMmq0ZKfmed77bf7uWd7S0+K4/N8PTxqNs71+J MKzsA X-Developer-Key: i=jth@kernel.org; a=openpgp; fpr=EC389CABC2C4F25D8600D0D00393969D2D760850 From: Johannes Thumshirn Rename 'btrfs_io_stripe::is_scrub' to 'rst_search_commit_root'. While 'is_scrub' describes the state of the io_stripe (it is a stripe submitted by scrub) it does not describe the purpose, namely looking at the commit root when searching RAID stripe-tree entries. Renaming the stripe to rst_search_commit_root describes this purpose. Reviewed-by: Josef Bacik Reviewed-by: Qu Wenruo Signed-off-by: Johannes Thumshirn --- fs/btrfs/bio.c | 2 +- fs/btrfs/raid-stripe-tree.c | 4 ++-- fs/btrfs/scrub.c | 2 +- fs/btrfs/volumes.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c index f04d93109960..dfb32f7d3fc2 100644 --- a/fs/btrfs/bio.c +++ b/fs/btrfs/bio.c @@ -679,7 +679,7 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) blk_status_t ret; int error; - smap.is_scrub = !bbio->inode; + smap.rst_search_commit_root = !bbio->inode; btrfs_bio_counter_inc_blocked(fs_info); error = btrfs_map_block(fs_info, btrfs_op(bio), logical, &map_length, diff --git a/fs/btrfs/raid-stripe-tree.c b/fs/btrfs/raid-stripe-tree.c index c1c74f310e8b..28a545367be7 100644 --- a/fs/btrfs/raid-stripe-tree.c +++ b/fs/btrfs/raid-stripe-tree.c @@ -210,7 +210,7 @@ int btrfs_get_raid_extent_offset(struct btrfs_fs_info *fs_info, if (!path) return -ENOMEM; - if (stripe->is_scrub) { + if (stripe->rst_search_commit_root) { path->skip_locking = 1; path->search_commit_root = 1; } @@ -283,7 +283,7 @@ int btrfs_get_raid_extent_offset(struct btrfs_fs_info *fs_info, out: if (ret > 0) ret = -ENOENT; - if (ret && ret != -EIO && !stripe->is_scrub) { + if (ret && ret != -EIO && !stripe->rst_search_commit_root) { btrfs_err(fs_info, "cannot find raid-stripe for logical [%llu, %llu] devid %llu, profile %s", logical, logical + *length, stripe->dev->devid, diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 0de9162ff481..b3afa6365823 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -1694,7 +1694,7 @@ static void scrub_submit_extent_sector_read(struct scrub_ctx *sctx, (i << fs_info->sectorsize_bits); int err; - io_stripe.is_scrub = true; + io_stripe.rst_search_commit_root = true; stripe_len = (nr_sectors - i) << fs_info->sectorsize_bits; /* * For RST cases, we need to manually split the bbio to diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index c947187539dd..03d2d60afe0c 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -444,7 +444,7 @@ struct btrfs_io_stripe { /* Block mapping. */ u64 physical; u64 length; - bool is_scrub; + bool rst_search_commit_root; /* For the endio handler. */ struct btrfs_io_context *bioc; }; From patchwork Wed Jul 31 20:43:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 13749192 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A7B316C6B4; Wed, 31 Jul 2024 20:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458610; cv=none; b=tIijiRAXUqVGWqtZJCHqpLzch2ksWNq9ty9DuzR7MwN8iDbxW336yoNs/aiDny2aIsCLfcs9CDhCsnjzNDYPEGfM/5MC9KMu1VY0m3742jAkNHgVDFQc7TedmkzhmCpzq7rILf+3n3GU+/3ExOwWaSPmZenbN23gsxo/YlR3sq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458610; c=relaxed/simple; bh=v4vCd/Bu2h4j7zhmr8yL+7rc9TdDQLIsA3Q1rIS8QPA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VgH04onorDVab2C5V2N1IGVThTQE843QZw5vyxXw0o+/QuccSxkEHzbEYXoXa5XWdODtOX3GhXoUeYFGsOMuWN2CG2NqHgOtNHHs5MVq2uO+w1d+aW0Z5aQgUrOaoBR7ZS2KHIRgGx67YR/qT0gQkEGgu/LN4SLW60ibC9PzN48= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a7aa4bf4d1eso858589166b.0; Wed, 31 Jul 2024 13:43:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722458607; x=1723063407; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/xHk5RgMaWEKXGJ61N7K1mI3Jkz5zzJ/5Z19Qs8wpYI=; b=SUBoM2e0aZlkFmSNe2VY3gBTrmo64TAO4f7RXz+R377An4mfSDeVqibdcU5hoXpv6b c9WOCD612NDFBDT7PtTC7SWSqevSMXXcu/genqFa42KOew6Ci0x9wDviBWT8l5tVlxky jJw8/ThBZkLIkeBFBMT/PxzObFxjaVgbGJr7kWEUsci8u+8q/aaVGenylDOKusgL+oTq XyJpmcG2Tg2tXdOf/1HWs1UXSWQ+J4P6tKj+tq9M+NrG/RQfNqFm94wbcMba45PE+Kfy xdURDUHB18s1rtZfcpnQ/GRVPlH1DZCuxZDKlAOGsJkN7k33QJOignikzmhXaCmcV3fA K6uw== X-Forwarded-Encrypted: i=1; AJvYcCXGKaJgLFYtTNqqPRgOPE/KDWKMO0Resg1YRrMzesnM7l4PqtldFlsHmlij3BCefUOG2ZfU+nTSonWPnVr3EjA0WboaLC36bCUXd+BO X-Gm-Message-State: AOJu0YyrF8DwwTlbJZ4H5phOHrpuq1kQJwLNIHcI3LfAPPYvSdyUuCvv imsiCRVmgoVU52AdKOIV9G1d42c8tc6TY98nrVKDf/bDCTlpixFGEm4JLA== X-Google-Smtp-Source: AGHT+IGRO8QW+aUvS3ay8zHdASwFvT7/4hNrCek0rA6DH2DIWFiQkCPtVZgaLaVvm1OMMGSpODZ7Uw== X-Received: by 2002:a17:907:cb88:b0:a7a:a30b:7b91 with SMTP id a640c23a62f3a-a7daf672dc0mr15434966b.64.1722458606523; Wed, 31 Jul 2024 13:43:26 -0700 (PDT) Received: from [127.0.0.1] (p200300f6f732f200fa633ffffe02074c.dip0.t-ipconnect.de. [2003:f6:f732:f200:fa63:3fff:fe02:74c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab4dec6sm807454366b.61.2024.07.31.13.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 13:43:26 -0700 (PDT) From: Johannes Thumshirn Date: Wed, 31 Jul 2024 22:43:05 +0200 Subject: [PATCH v3 3/5] btrfs: set rst_search_commit_root in case of relocation Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240731-debug-v3-3-f9b7ed479b10@kernel.org> References: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> In-Reply-To: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Thumshirn , Qu Wenruo X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=895; i=jth@kernel.org; h=from:subject:message-id; bh=/oIRBLEpQO1DCEdzc5KY2X8GmQ9KE67FpNuLhhDmBNM=; b=owGbwMvMwCV2ad4npfVdsu8YT6slMaStWviy6tWaf2kCiumRBkpfv735OuPdp7/z10WpiPvlz nGQ0Wuz7ihlYRDjYpAVU2Q5Hmq7X8L0CPuUQ6/NYOawMoEMYeDiFICJPO9n+F951mUJ111hvs0p 50OCTrMq/fYy3/HjF2PM0z+p7DZfPNcxMuzcll/S86y/d+L6j7+fHfM+vu5JAmOwSbhrYX26zeL 32QwA X-Developer-Key: i=jth@kernel.org; a=openpgp; fpr=EC389CABC2C4F25D8600D0D00393969D2D760850 From: Johannes Thumshirn Set rst_search_commit_root in the btrfs_io_stripe we're passing to btrfs_map_block() in case we're doing data relocation. Reviewed-by: Josef Bacik Reviewed-by: Qu Wenruo Signed-off-by: Johannes Thumshirn --- fs/btrfs/bio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c index dfb32f7d3fc2..c6563616c813 100644 --- a/fs/btrfs/bio.c +++ b/fs/btrfs/bio.c @@ -679,7 +679,8 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) blk_status_t ret; int error; - smap.rst_search_commit_root = !bbio->inode; + smap.rst_search_commit_root = + (!bbio->inode || btrfs_is_data_reloc_root(inode->root)); btrfs_bio_counter_inc_blocked(fs_info); error = btrfs_map_block(fs_info, btrfs_op(bio), logical, &map_length, From patchwork Wed Jul 31 20:43:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 13749193 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C97D16CD09; Wed, 31 Jul 2024 20:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458611; cv=none; b=gSxe5gu5DczyrrJM6WXI4xzh6bfhzir2EACdsVAqVJ/P0hK5+I4w0E0SDVsNaIfCitojQc2sOCkPs7Upg8PuKHMKgxLr499GlgU5+KlfV7qI9Rjpzs35DBNqB10JfkULcDlJ7JoIAk0sXNxmfqB0dQ+crmf33qD7P5orxBMJHho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458611; c=relaxed/simple; bh=tWUZZ1/U7Z/l8X8B9oY0WHueC3MtkDdTUoyn+Rt3W5E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VRQezs8pVTfWFD9ZBBrxaEAvcWlF6WIE+4vtYyaJoNR5sqVYsEbMQboVxhVWxmxbZ6pJDSi+hObllN5Ocw37PEmjt8b/Z8GvFhqjGOQ0yxOPu0641qQs9z+XywdwK8K1jjylBrI8yEAveBus1itBWFxZjHAx0IWxVk38aVuxcIY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5a2ffc346ceso8796480a12.1; Wed, 31 Jul 2024 13:43:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722458608; x=1723063408; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RC6NIPf60VVeDjK9hw0VgnQZtg20ZGzDZ7liwTh109k=; b=MRuH63LPiXE1G1X4rrwII0K+0WdY1xTkqZA6y6B76eJBm6yJl4IaNC5v/lRnhJWRzU ZDyGLeRp8gkO8XUDuoZf6CDws/HSXbl3cCsIctG+SldZYYFirA0r+8FUDlzt8JS17HGG 4eSWhyUEm9DV3st1Q7LhrS5zj8YKB2Vr8btB7RMkckrzDpcKE8z3rjwb6L85+PjRCdjr dYLqA8vvUprJEHLj7KAAI3Zrp/NnON5KMNgv7CesnaBeITo+HfDfBeQuejrexGPU17OH WOku6XXqV6BnCX4vfoqNRytHXhqVQDPkHa2ltU4i0tGZXIEDnSWtNXCPObU8Z5YqBd9u rrug== X-Forwarded-Encrypted: i=1; AJvYcCVOwBo2sH4p+B305vUy3XzqbUZHJzWv1UUzAW+2sEkTJCf86UFzyCJ/NDHV7l83be4XUUW6vqbTk91KUb7VVwftQeShOGbmNEclVgk/ X-Gm-Message-State: AOJu0YyoI0w4hq09V3cJzQsOkPgd+cB/SE5DNtpXEu4BWnRXYcw6vkrs K/gE6eF6GnJ8jZG2RtG+9eoa7BiFYPmM6C/fRO4pj2Yf4B7cMHAM X-Google-Smtp-Source: AGHT+IHj3NT/HgfzS2zvcrWaQ0yvShtwY1Xk3Ipcxq3SZYRXt3gWw0KjtxcDqQL7P/ay33X0FylkLw== X-Received: by 2002:a17:906:fe42:b0:a72:4444:79bb with SMTP id a640c23a62f3a-a7daf6172femr23759566b.59.1722458607552; Wed, 31 Jul 2024 13:43:27 -0700 (PDT) Received: from [127.0.0.1] (p200300f6f732f200fa633ffffe02074c.dip0.t-ipconnect.de. [2003:f6:f732:f200:fa63:3fff:fe02:74c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab4dec6sm807454366b.61.2024.07.31.13.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 13:43:27 -0700 (PDT) From: Johannes Thumshirn Date: Wed, 31 Jul 2024 22:43:06 +0200 Subject: [PATCH v3 4/5] btrfs: don't readahead the relocation inode on RST Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240731-debug-v3-4-f9b7ed479b10@kernel.org> References: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> In-Reply-To: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Thumshirn , Filipe Manana , Qu Wenruo , Johannes Thumshirn X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=5840; i=jth@kernel.org; h=from:subject:message-id; bh=dk7SyTtlRmpI5e9p68Yh2rZgKf2hPJrS9sq/1U/ow50=; b=owGbwMvMwCV2ad4npfVdsu8YT6slMaStWvgyrXHpq/nPbZ++sO9Y7HpIVN+v+cFRRVOV05MP7 ozaYBHb1lHKwiDGxSArpshyPNR2v4TpEfYph16bwcxhZQIZwsDFKQATEfvO8JvVqlh2xeRZKhN/ H9G+Wx/7ymSWU7h6S0xR25++tfdldfgZGR6IXurPk7qXEb6F6U46o9TvL0Kvk89Z7pfz8H61t11 lLzMA X-Developer-Key: i=jth@kernel.org; a=openpgp; fpr=EC389CABC2C4F25D8600D0D00393969D2D760850 From: Johannes Thumshirn On relocation we're doing readahead on the relocation inode, but if the filesystem is backed by a RAID stripe tree we can get ENOENT (e.g. due to preallocated extents not being mapped in the RST) from the lookup. But readahead doesn't handle the error and submits invalid reads to the device, causing an assertion in the scatter-gather list code: BTRFS info (device nvme1n1): balance: start -d -m -s BTRFS info (device nvme1n1): relocating block group 6480920576 flags data|raid0 BTRFS error (device nvme1n1): cannot find raid-stripe for logical [6481928192, 6481969152] devid 2, profile raid0 ------------[ cut here ]------------ kernel BUG at include/linux/scatterlist.h:115! Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 1012 Comm: btrfs Not tainted 6.10.0-rc7+ #567 RIP: 0010:__blk_rq_map_sg+0x339/0x4a0 RSP: 0018:ffffc90001a43820 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffea00045d4802 RDX: 0000000117520000 RSI: 0000000000000000 RDI: ffff8881027d1000 RBP: 0000000000003000 R08: ffffea00045d4902 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000001000 R12: ffff8881003d10b8 R13: ffffc90001a438f0 R14: 0000000000000000 R15: 0000000000003000 FS: 00007fcc048a6900(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002cd11000 CR3: 00000001109ea001 CR4: 0000000000370eb0 Call Trace: ? __die_body.cold+0x14/0x25 ? die+0x2e/0x50 ? do_trap+0xca/0x110 ? do_error_trap+0x65/0x80 ? __blk_rq_map_sg+0x339/0x4a0 ? exc_invalid_op+0x50/0x70 ? __blk_rq_map_sg+0x339/0x4a0 ? asm_exc_invalid_op+0x1a/0x20 ? __blk_rq_map_sg+0x339/0x4a0 nvme_prep_rq.part.0+0x9d/0x770 nvme_queue_rq+0x7d/0x1e0 __blk_mq_issue_directly+0x2a/0x90 ? blk_mq_get_budget_and_tag+0x61/0x90 blk_mq_try_issue_list_directly+0x56/0xf0 blk_mq_flush_plug_list.part.0+0x52b/0x5d0 __blk_flush_plug+0xc6/0x110 blk_finish_plug+0x28/0x40 read_pages+0x160/0x1c0 page_cache_ra_unbounded+0x109/0x180 relocate_file_extent_cluster+0x611/0x6a0 ? btrfs_search_slot+0xba4/0xd20 ? balance_dirty_pages_ratelimited_flags+0x26/0xb00 relocate_data_extent.constprop.0+0x134/0x160 relocate_block_group+0x3f2/0x500 btrfs_relocate_block_group+0x250/0x430 btrfs_relocate_chunk+0x3f/0x130 btrfs_balance+0x71b/0xef0 ? kmalloc_trace_noprof+0x13b/0x280 btrfs_ioctl+0x2c2e/0x3030 ? kvfree_call_rcu+0x1e6/0x340 ? list_lru_add_obj+0x66/0x80 ? mntput_no_expire+0x3a/0x220 __x64_sys_ioctl+0x96/0xc0 do_syscall_64+0x54/0x110 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fcc04514f9b Code: Unable to access opcode bytes at 0x7fcc04514f71. RSP: 002b:00007ffeba923370 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fcc04514f9b RDX: 00007ffeba923460 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000013 R09: 0000000000000001 R10: 00007fcc043fbba8 R11: 0000000000000246 R12: 00007ffeba924fc5 R13: 00007ffeba923460 R14: 0000000000000002 R15: 00000000004d4bb0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__blk_rq_map_sg+0x339/0x4a0 RSP: 0018:ffffc90001a43820 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffea00045d4802 RDX: 0000000117520000 RSI: 0000000000000000 RDI: ffff8881027d1000 RBP: 0000000000003000 R08: ffffea00045d4902 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000001000 R12: ffff8881003d10b8 R13: ffffc90001a438f0 R14: 0000000000000000 R15: 0000000000003000 FS: 00007fcc048a6900(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcc04514f71 CR3: 00000001109ea001 CR4: 0000000000370eb0 Kernel panic - not syncing: Fatal exception Kernel Offset: disabled ---[ end Kernel panic - not syncing: Fatal exception ]--- So in case of a relocation on a RAID stripe-tree based file system, skip the readahead. Cc: Josef Bacik Cc: Filipe Manana Reviewed-by: Josef Bacik Reviewed-by: Qu Wenruo Signed-off-by: Johannes Thumshirn --- fs/btrfs/relocation.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 0533d0f82dc9..72fb43b4d27c 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -36,6 +36,7 @@ #include "relocation.h" #include "super.h" #include "tree-checker.h" +#include "raid-stripe-tree.h" /* * Relocation overview @@ -2965,21 +2966,26 @@ static int relocate_one_folio(struct reloc_control *rc, u64 folio_end; u64 cur; int ret; + bool use_rst = + btrfs_need_stripe_tree_update(fs_info, rc->block_group->flags); ASSERT(index <= last_index); folio = filemap_lock_folio(inode->i_mapping, index); if (IS_ERR(folio)) { - page_cache_sync_readahead(inode->i_mapping, ra, NULL, - index, last_index + 1 - index); + if (!use_rst) + page_cache_sync_readahead(inode->i_mapping, ra, NULL, + index, + last_index + 1 - index); folio = __filemap_get_folio(inode->i_mapping, index, - FGP_LOCK | FGP_ACCESSED | FGP_CREAT, mask); + FGP_LOCK | FGP_ACCESSED | FGP_CREAT, + mask); if (IS_ERR(folio)) return PTR_ERR(folio); } WARN_ON(folio_order(folio)); - if (folio_test_readahead(folio)) + if (folio_test_readahead(folio) && !use_rst) page_cache_async_readahead(inode->i_mapping, ra, NULL, folio, last_index + 1 - index); From patchwork Wed Jul 31 20:43:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 13749194 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37BEC16CD37; Wed, 31 Jul 2024 20:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458611; cv=none; b=Cc5hhm1C7Uick7My2RSEDb3Mt2QGb/5dwPsqWshVdw+i4/amVrZ7AHxkmrWc6r1OgmbZtgterERH4MoKZ8kucL06xtXeqThbsu/uCALVc/6+djKEY8Dc7ytFz/lOB/hzJ4jcV3bbD+SgceU70ckHXtJz/dmk7r83b0Sb10f7Ytw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722458611; c=relaxed/simple; bh=tZboRP/+4mQacUKXIXwDMXZs+JVgoNI5V9YgSrvr6Xc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SuhTs0AJnbHEjBWmRgp5eqTBu1HRl5LKoWDY3+jjOHzOmx7fECCeHvn329WMP++pOKGHPln0GsNRjzUSDVrkXteRE1ythaihBGh6FwMxeFOstcXOjt0+VV47ailUeaUFKKycP3rtP/ogls6jb0eRVkuIXp8lqHD+vstUUOxN47Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a7aada2358fso239370366b.0; Wed, 31 Jul 2024 13:43:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722458608; x=1723063408; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2DT2eMmJlRPISGpF1p5jkVFugCIV2VDJkFyEE/4PTkw=; b=iAG2HZ6vMVQ351z3g+IByjvt500mP1+F74BHbYN4JG/hb6kIzJmuhZ8tuCI/R9opeV ApQC78WVEZD89I/yxpv78pU5r1FjCi8oDPtFCXifaKRdOTSlv9JPAyH38o85+9NP2euH yA9ZMpGedAg38mle5WY+s02oRVa5LB+2mnVGQjyZ5alsQRZoMU5WX3hVFRbQWaPmJP8g S7mieIcFnYd/bpbFCev1Ep8vhCmaDWss9iRg1owAV+ThtBPdpUWsVZ1c4efvO1dxCe5d IwEQbUhWM0mYe3EJVZncBeNAgfBBoHxGpPzchuIgRI4kTEmld/Y/X/qf8AtGPcd/7Sf6 TjSA== X-Forwarded-Encrypted: i=1; AJvYcCXBDb4hgmbVDZ1s2BnFZQf33qeHqipZkB8BHJnehpI86HryJ6XTbO50I2IMfZ85EbvlZ1CBbxAZyL5tDeZH9uwRLqCU7CtqpJ7qUZoU X-Gm-Message-State: AOJu0YxuB7Xn1HOQWFhVbHHGgMLkEODQ38JEWT36U92WyeoE8qdwlfbr RtRtqUgmmM2ciCk6Zt5jGBKs8bW7opmMDRzLeIRR1GIJ4C388YBz X-Google-Smtp-Source: AGHT+IEhZ7af1XwaJVMpX3tSWKyNoHRVTS48+Zbg7o9RXstO8RpmECDHgCkOQIGsxKeXjmYQ983Rvg== X-Received: by 2002:a17:907:1b07:b0:a72:5967:b34 with SMTP id a640c23a62f3a-a7daee5335fmr21872866b.22.1722458608428; Wed, 31 Jul 2024 13:43:28 -0700 (PDT) Received: from [127.0.0.1] (p200300f6f732f200fa633ffffe02074c.dip0.t-ipconnect.de. [2003:f6:f732:f200:fa63:3fff:fe02:74c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab4dec6sm807454366b.61.2024.07.31.13.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 13:43:28 -0700 (PDT) From: Johannes Thumshirn Date: Wed, 31 Jul 2024 22:43:07 +0200 Subject: [PATCH v3 5/5] btrfs: change RST lookup error message to debug Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240731-debug-v3-5-f9b7ed479b10@kernel.org> References: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> In-Reply-To: <20240731-debug-v3-0-f9b7ed479b10@kernel.org> To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Thumshirn , Qu Wenruo X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1008; i=jth@kernel.org; h=from:subject:message-id; bh=ZDUzLvgB6IiCMYV7UPQGbGhRKgjVEj0Z00Tth7gECio=; b=owGbwMvMwCV2ad4npfVdsu8YT6slMaStWvhqyqlVe1hXcufPzjlUInS63r7A98GDv5aZzzeuy ODVvNoY2VHKwiDGxSArpshyPNR2v4TpEfYph16bwcxhZQIZwsDFKQAT2XGZkaH1XOaxg09S5ld7 73r59ftFNT++gPQF0YkyAb9nv+u4KZvN8N+j7o/egpuSF3X/zz64uLhG3CBXMHFWntedZXc7Zq+ /aMkMAA== X-Developer-Key: i=jth@kernel.org; a=openpgp; fpr=EC389CABC2C4F25D8600D0D00393969D2D760850 From: Johannes Thumshirn Now that RAID stripe-tree lookup failures are not treated as a fatal issue any more, change the RAID stripe-tree lookup error message to debug level. Reviewed-by: Josef Bacik Reviewed-by: Qu Wenruo Signed-off-by: Johannes Thumshirn --- fs/btrfs/raid-stripe-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/raid-stripe-tree.c b/fs/btrfs/raid-stripe-tree.c index 28a545367be7..4c859b550f6c 100644 --- a/fs/btrfs/raid-stripe-tree.c +++ b/fs/btrfs/raid-stripe-tree.c @@ -284,7 +284,7 @@ int btrfs_get_raid_extent_offset(struct btrfs_fs_info *fs_info, if (ret > 0) ret = -ENOENT; if (ret && ret != -EIO && !stripe->rst_search_commit_root) { - btrfs_err(fs_info, + btrfs_debug(fs_info, "cannot find raid-stripe for logical [%llu, %llu] devid %llu, profile %s", logical, logical + *length, stripe->dev->devid, btrfs_bg_type_to_raid_name(map_type));