]> git.baikalelectronics.ru Git - kernel.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)
commit05f744ad35a1057382e80f0d223dd394e2e7314c
tree203f2d8658a50529179d9e976e4fd93a263b90c8
parentc934b78e60bd38b4b1f51eaee420b156053d3df8
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