Re: [PATCH] btrfs: unlock all extent buffer folios in failure case

From: David Sterba
Date: Thu Apr 24 2025 - 07:58:15 EST


On Thu, Apr 24, 2025 at 01:15:24PM +0200, Klara Modin wrote:
>
> Hi,
>
> On Tue, Apr 22, 2025 at 02:57:01PM +0200, Daniel Vacek wrote:
> > When attaching a folio fails, for example if another one is already mapped,
> > we need to unlock all newly allocated folios before putting them. And as a
> > consequence we do not need to flag the eb UNMAPPED anymore.
> >
> > Signed-off-by: Daniel Vacek <neelx@xxxxxxxx>
>
> I hit a null pointer dereference in next-20250424 which seems to point
> to this commit. Reverting it resolves the issue for me (did not bisect).

Thanks for the report, the patch has been removed from linux-next
branches.