]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: qgroup: Add the ability to skip given qgroup for old/new_roots.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 20 Apr 2015 01:53:50 +0000 (09:53 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:26:23 +0000 (09:26 -0700)
commitab4ce5514bc7cc9dea549d9d0712b924d4932cd3
tree26cba099d0d7c8209e036024f70b32d3bd2615e0
parent369c0b8e8c3b46ee61a900b353c29881ee6808fd
btrfs: qgroup: Add the ability to skip given qgroup for old/new_roots.

This is used by later qgroup fix patches for snapshot.

As current snapshot accounting is done by btrfs_qgroup_inherit(), but
new extent oriented quota mechanism will account extent from
btrfs_copy_root() and other snapshot things, causing wrong result.

So add this ability to handle snapshot accounting.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/delayed-ref.h
fs/btrfs/qgroup.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h