aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2021-03-11 15:13:30 +0000
committerDavid Sterba <[email protected]>2021-03-15 16:57:19 +0100
commite3d3b4157610164b0ec43d968b0dfedfe7c68992 (patch)
treead175deedb026e3125dcdcd6aba170900921e843 /lib/mpi
parenta3ee79bd8fe17812d2305ccc4bf81bfeab395576 (diff)
btrfs: zoned: fix linked list corruption after log root tree allocation failure
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 contexts 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 contexts of the log root tree. Fixes: 3ddebf27fcd3a9 ("btrfs: zoned: reorder log node allocation on zoned filesystem") Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Naohiro Aota <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions