]> 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)
commit2aaf7b742bb04d88c857a3be1a17889e9a0978d6
tree203f2d8658a50529179d9e976e4fd93a263b90c8
parent72b12b0a081161efd8786ff6a025b8a57ebbf235
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