]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: update drop progress before stopping snapshot dropping
authorJosef Bacik <jbacik@fusionio.com>
Mon, 15 Jul 2013 15:57:06 +0000 (11:57 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 19 Jul 2013 19:07:03 +0000 (15:07 -0400)
commit3c8f24225752fba30f7265202ce6092318ed9fac
tree203f2d8658a50529179d9e976e4fd93a263b90c8
parentb8a33fc7258f9e6e42b15571d0284b7c0ef0d0a9
Btrfs: update drop progress before stopping snapshot dropping

Alex pointed out a problem and fix that exists in the drop one snapshot at a
time patch.  If we decide we need to exit for whatever reason (umount for
example) we will just exit the snapshot dropping without updating the drop
progress.  So the next time we go to resume we will BUG_ON() because we can't
find the extent we left off at because we never updated it.  This patch fixes
the problem.

Cc: stable@vger.kernel.org
Reported-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c