btrfs: qgroup: Introduce btrfs_qgroup_reserve_data function
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 12 Oct 2015 08:05:40 +0000 (16:05 +0800)
committerChris Mason <clm@fb.com>
Thu, 22 Oct 2015 01:37:45 +0000 (18:37 -0700)
commit524725537023bb25a371722b1329446e5a2adcdb
tree40e4d0798939f7a6c9f4ee27c7bf3225c3aa5bb0
parentfefdc55702a5f9f99778b6bdce4c4e1185ff943f
btrfs: qgroup: Introduce btrfs_qgroup_reserve_data function

Introduce a new function, btrfs_qgroup_reserve_data(), which will use
io_tree to accurate qgroup reserve, to avoid reserved space leaking.

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