From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D0FB216E3B; Thu, 12 Dec 2024 17:28:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734024517; cv=none; b=WUwvI359639zFgOLMnVKqU0ZkM4Hk7z8eMmQg8JfDC38EEQ+GfOofIY6En8ichp0Y3KOu8ISum+aw6mlpOm+J5TaLfpE/Zc7nVVpI38Bw3UOIiiFK2aKQLCoOKeEQP+wv81drrr2m4u1lAkwRiIGo0o3IHtFwpQkNNoCGDO8HB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734024517; c=relaxed/simple; bh=zFpPhaBXylhU5eea6N0yjF+nhg2x3quaeXr7hLYRbTU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UhaQTs8WhM1v4Hik4w+Cp6vjqf3pMmQeLIwxznFt4PhKJcb54set63hUyo+t+dy1ooCJjJQp39TcbXXUjRXi//73ZnotPtQuX0odbOOEMFgmFOzkri1rMNaBc4rDYoeUOE/apk4zCDrCH2DhQVEXjPKMjum/HrWfzfBFo+pR7TA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jEbOLlLD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jEbOLlLD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 008E9C4CED3; Thu, 12 Dec 2024 17:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734024517; bh=zFpPhaBXylhU5eea6N0yjF+nhg2x3quaeXr7hLYRbTU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jEbOLlLDf7suCDT+SiQ933V3KXeRRq77OUvSLJxMHdn4X3zd0Ii5AbYeHtAqfIRPs aHDY9dxqTgh5Lmd4KDWBJGUuHWfqyalHlbnsaice3pIuijglu52BXyMKckUGpZEt+7 w0wFXVu4dTZmkLG2Mc4vovVKFU1okU/OxrFx1efg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Josef Bacik , David Sterba , Sasha Levin , Keerthana K Subject: [PATCH 5.10 323/459] btrfs: dont BUG_ON on ENOMEM from btrfs_lookup_extent_info() in walk_down_proc() Date: Thu, 12 Dec 2024 16:01:01 +0100 Message-ID: <20241212144306.421471432@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144253.511169641@linuxfoundation.org> References: <20241212144253.511169641@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Josef Bacik commit a580fb2c3479d993556e1c31b237c9e5be4944a3 upstream. We handle errors here properly, ENOMEM isn't fatal, return the error. Signed-off-by: Josef Bacik Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Sasha Levin Signed-off-by: Keerthana K Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/extent-tree.c | 1 - 1 file changed, 1 deletion(-) --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -4878,7 +4878,6 @@ static noinline int walk_down_proc(struc eb->start, level, 1, &wc->refs[level], &wc->flags[level]); - BUG_ON(ret == -ENOMEM); if (ret) return ret; if (unlikely(wc->refs[level] == 0)) {