commit | f64d5ca868214f9beb60108c82fcb96940132bfb | [log] [tgz] |
---|---|---|
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | Tue Sep 08 17:08:36 2015 +0800 |
committer | Chris Mason <clm@fb.com> | Wed Oct 21 18:37:46 2015 -0700 |
tree | 21676bd140d5b755f24663839f10e2c04c878e3e | |
parent | f695fdcef83ac6972e0eda1d6588a56348f521a2 [diff] |
btrfs: delayed_ref: Add new function to record reserved space into delayed ref Add new function btrfs_add_delayed_qgroup_reserve() function to record how much space is reserved for that extent. As btrfs only accounts qgroup at run_delayed_refs() time, so newly allocated extent should keep the reserved space until then. So add needed function with related members to do it. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>