summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-09-08 17:08:38 +0800
committerChris Mason <clm@fb.com>2015-10-21 18:37:47 -0700
commit55eeaf0578038c40baaf3cf9408c23e42cd2a2b8 (patch)
tree3539d0575ebba0c079cc293b9cf884a402688d1b /fs/btrfs/ctree.h
parent297d750b9f8d7e6f2dbdf8abc5aa3b5c656affdc (diff)
downloadlwn-55eeaf0578038c40baaf3cf9408c23e42cd2a2b8.tar.gz
lwn-55eeaf0578038c40baaf3cf9408c23e42cd2a2b8.zip
btrfs: qgroup: Introduce new functions to reserve/free metadata
Introduce new functions btrfs_qgroup_reserve/free_meta() to reserve/free metadata reserved space. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 49bc792108b9..9df8f01de4df 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1943,6 +1943,9 @@ struct btrfs_root {
int send_in_progress;
struct btrfs_subvolume_writers *subv_writers;
atomic_t will_be_snapshoted;
+
+ /* For qgroup metadata space reserve */
+ atomic_t qgroup_meta_rsv;
};
struct btrfs_ioctl_defrag_range_args {