summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-10-12 16:05:40 +0800
committerChris Mason <clm@fb.com>2015-10-21 18:37:45 -0700
commit524725537023bb25a371722b1329446e5a2adcdb (patch)
tree40e4d0798939f7a6c9f4ee27c7bf3225c3aa5bb0 /fs/btrfs/qgroup.h
parentfefdc55702a5f9f99778b6bdce4c4e1185ff943f (diff)
downloadop-kernel-dev-524725537023bb25a371722b1329446e5a2adcdb.zip
op-kernel-dev-524725537023bb25a371722b1329446e5a2adcdb.tar.gz
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>
Diffstat (limited to 'fs/btrfs/qgroup.h')
-rw-r--r--fs/btrfs/qgroup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/qgroup.h b/fs/btrfs/qgroup.h
index 6387dcf..bd17cc2 100644
--- a/fs/btrfs/qgroup.h
+++ b/fs/btrfs/qgroup.h
@@ -81,4 +81,6 @@ int btrfs_verify_qgroup_counts(struct btrfs_fs_info *fs_info, u64 qgroupid,
u64 rfer, u64 excl);
#endif
+/* New io_tree based accurate qgroup reserve API */
+int btrfs_qgroup_reserve_data(struct inode *inode, u64 start, u64 len);
#endif /* __BTRFS_QGROUP__ */
OpenPOWER on IntegriCloud