Btrfs: hooks to reserve qgroup space
authorArne Jansen <sensille@gmx.net>
Wed, 14 Sep 2011 13:44:05 +0000 (15:44 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 12 Jul 2012 08:54:39 +0000 (10:54 +0200)
commitc556723794b3487a79de1ecd6354975b1389f5ff
tree99b363645203df002ab421bbd7be3b56dbd1e6ef
parent546adb0d817c34dc2be3a7cb5bba8771f837a562
Btrfs: hooks to reserve qgroup space

Like block reserves, reserve a small piece of space on each
transaction start and for delalloc. These are the hooks that
can actually return EDQUOT to the user.
The amount of space reserved is tracked in the transaction
handle.

Signed-off-by: Arne Jansen <sensille@gmx.net>
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h