]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit9086db86e0b09c39abead4d747119695553e3978
tree26cba099d0d7c8209e036024f70b32d3bd2615e0
parentd4b804045924d7f8d2ea988be22c4b9e6492ec11
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