On Thu, Mar 11, 2021 at 03:13:30PM +0000, fdman...@kernel.org wrote: > From: Filipe Manana <fdman...@suse.com> > > When using a zoned filesystem, while syncing the log, if we fail to > allocate the root node for the log root tree, we are not removing the > log context we allocated on stack from the list of log contextes of the > log root tree. This means after the return from btrfs_sync_log() we get > a corrupted linked list. > > Fix this by allocating the node before adding our stack allocated context > to the list of log contextes of the log root tree. > > Fixes: 3ddebf27fcd3a9 ("btrfs: zoned: reorder log node allocation on zoned > filesystem") > Signed-off-by: Filipe Manana <fdman...@suse.com>
Added to misc-next, thanks.