aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorYan <yanzheng@21cn.com>2007-11-16 14:57:08 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:57 -0400
commit324ae4df00fdc1a6a179bf584d8addf027bb75fb (patch)
tree81d6fd1c3605f998051c46596b64da431b706e89 /fs/btrfs/ctree.h
parent5103e947b9b7ac18ddb21a04ee3486e94c6504d7 (diff)
Btrfs: Add block group pinned accounting back
This patch adds a helper function 'update_pinned_extents' to extent-tree.c. The usage of the helper function is similar to 'update_block_group', the last parameter of the function indicates pin vs unpin. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 27cadae1af63..56b977ffe918 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -292,8 +292,8 @@ struct btrfs_block_group_cache {
292 struct btrfs_block_group_item item; 292 struct btrfs_block_group_item item;
293 int data; 293 int data;
294 int cached; 294 int cached;
295 u64 pinned;
295}; 296};
296
297struct btrfs_fs_info { 297struct btrfs_fs_info {
298 u8 fsid[BTRFS_FSID_SIZE]; 298 u8 fsid[BTRFS_FSID_SIZE];
299 struct btrfs_root *extent_root; 299 struct btrfs_root *extent_root;
@@ -324,8 +324,9 @@ struct btrfs_fs_info {
324 struct completion kobj_unregister; 324 struct completion kobj_unregister;
325 int do_barriers; 325 int do_barriers;
326 int closing; 326 int closing;
327};
328 327
328 u64 total_pinned;
329};
329/* 330/*
330 * in ram representation of the tree. extent_root is used for all allocations 331 * in ram representation of the tree. extent_root is used for all allocations
331 * and for the extent tree extent_root root. 332 * and for the extent tree extent_root root.