btrfs: qgroup: Cleanup open-coded old/new_refcnt update and read.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 12 Mar 2015 08:10:13 +0000 (16:10 +0800)
committerChris Mason <clm@fb.com>
Wed, 10 Jun 2015 16:25:13 +0000 (09:25 -0700)
commit9c542136fd94941572762e7955e6a054b23e97f7
tree3d3270541322872337936655a338ad4c8fc97cf9
parentc43d160fcd5e4e4f7d2983f5d5253ca33a1596ca
btrfs: qgroup: Cleanup open-coded old/new_refcnt update and read.

Use inline functions to do such things, to improve readability.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Acked-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c