OSDN Git Service

btrfs: qgroup: Refactor btrfs_qgroup_trace_subtree_swap
authorQu Wenruo <wqu@suse.com>
Wed, 23 Jan 2019 07:15:15 +0000 (15:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:26 +0000 (14:13 +0100)
commit5aea1a4fcf1e4fe3daea6f18fb66cbe49439bd8e
treea4d85696b9a50eb1d8577cdfb8e7f165450589b0
parentd2311e69857815ae2f728b48e6730f833a617092
btrfs: qgroup: Refactor btrfs_qgroup_trace_subtree_swap

Refactor btrfs_qgroup_trace_subtree_swap() into
qgroup_trace_subtree_swap(), which only needs two extent buffer and some
other bool to control the behavior.

This provides the basis for later delayed subtree scan work.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c