Skip to content
Commit 0f5d42b2 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: remove extent mapping if we fail to add chunk



I got a double free error when unmounting a file system that failed to add a
chunk during its operation.  This is because we will kfree the mapping that
we created but leave the extent_map in the em_tree for chunks.  So to fix
this just remove the extent_map when we error out so we don't run into this
problem.  Thanks,

Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 04487488
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment