From: Josef Bacik Date: Thu, 31 Jan 2013 15:23:04 +0000 (-0500) Subject: Btrfs: remove extent mapping if we fail to add chunk X-Git-Tag: v3.9-rc1~17^2~29^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f5d42b287f32417e54485d79f2318cf2970b37d;p=pandora-kernel.git 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: Josef Bacik --- Reading git-diff-tree failed