Btrfs: Do snapshot deletion in smaller chunks.
authorChris Mason <chris.mason@oracle.com>
Tue, 7 Aug 2007 19:52:19 +0000 (15:52 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 7 Aug 2007 19:52:19 +0000 (15:52 -0400)
commit9f3a742736cecda5a8778be70faa2f779458839f
tree500ef3701521e63254dbe82e5c71e7ccff746275
parent8578f0f1fda41f8429a1037022b720275102ca65
Btrfs: Do snapshot deletion in smaller chunks.

Before, snapshot deletion was a single atomic unit.  This caused considerable
lock contention and required an unbounded amount of space.  Now,
the drop_progress field in the root item is used to indicate how far along
snapshot deletion is, and to resume where it left off.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c