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 0B8431F0E34 for ; Mon, 28 Jul 2025 09:39:51 +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=1753695592; cv=none; b=fgGqKAnCXC8ioM/xXNLaPpba/9TjkDYeJGytM6+olEnoECrsbsw3z8/i5ag8gAfffBIp2BD1kgYtuWXr5LptHfEcmAow2aprAfhf/1yc6quuwItLpGgJXTF3d4u1H3GLN29GoTbnr795LZwicDhvdULUHFifFAb94ej33klXZdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753695592; c=relaxed/simple; bh=oZO8jU85mcfMOZyKXN1yBUbDv24PB3rCzyLDo7UgueE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=pI17OumAzD6HPpZxvLjlAx4IIJzvmDxN1pYCBkVENgM/h1TI+JUKVG5/PKkDVez5fTBQs+jiDUsiFiZfLX0iPmUX10CU6b4ujRuA0n1BTPn+tE+CwoUnjWH4T8ix/7GLPXWhZ4an39/MaEmbVNrrj89Rttlo8wL6LgnZHWwyJEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DWbVsK0q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DWbVsK0q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEEE8C4CEF4 for ; Mon, 28 Jul 2025 09:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753695591; bh=oZO8jU85mcfMOZyKXN1yBUbDv24PB3rCzyLDo7UgueE=; h=From:To:Subject:Date:From; b=DWbVsK0qLwPuT5br8dVmkEBAwiimAz4WgK/wiIMIXlY2MpFgP7Y7pDWS+vKRxPGUg LiKtOZrP0hEXyrdoKK1mPPLlWmr/4Nk3VS5LSu26qT11jHmC6KJrUIeL0K6tlE51px C96US/6bPb4PCd0QZB/0jcWBWokKaOsM4vhE2qvZpj+HdNOIJd2VHjiu9mWEqigm0k lwd2zHpL13+cDXmQIGKKJBk2+TcBroCM0QhoXnR8+iwHsWk0ukGNidKRVgwgUaokEg V6/9ofAovvpFjCfcpwIbAI0Rz4yOVyZZAFHtkhXtLssRdh1cq6/D+FG9gD98yaoXAo PDU56EzmNOhOw== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/3] btrfs: error path fixes for btrfs_link() and a cleanup Date: Mon, 28 Jul 2025 10:39:45 +0100 Message-ID: X-Mailer: git-send-email 2.47.2 Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Filipe Manana Fix a couple bugs in the error paths for btrfs_link() and a cleanup to make it more simple. Filipe Manana (3): btrfs: abort transaction on failure to add link to inode btrfs: fix inode leak on failure to add link to inode btrfs: simplify error handling logic for btrfs_link() fs/btrfs/inode.c | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) -- 2.47.2