commit | 109f2365f1928af241b2ccbd0f6ba0b93d911288 | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Mon Nov 05 12:42:09 2012 +0000 |
committer | Josef Bacik <jbacik@fusionio.com> | Wed Dec 12 17:15:25 2012 -0500 |
tree | 60be3ee8c1154534a691c8136ce3e39e69c7cc00 | |
parent | 37c4146d2208ba7e4463e8dd95a1bf9e3d865280 [diff] |
Btrfs: fix a double free on pending snapshots in error handling When creating a snapshot, failing to commit a transaction can end up with aborting the transaction, following by doing a cleanup for it, where we'll free all snapshots pending to disk. So we check it and avoid double free on pending snapshots. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>