summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
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/disk-io.c
parent5103e947b9b7ac18ddb21a04ee3486e94c6504d7 (diff)
downloadlwn-324ae4df00fdc1a6a179bf584d8addf027bb75fb.tar.gz
lwn-324ae4df00fdc1a6a179bf584d8addf027bb75fb.zip
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/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 6c8533fba7c9..3e16cca72b49 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -569,6 +569,7 @@ struct btrfs_root *open_ctree(struct super_block *sb)
fs_info->btree_inode->i_mapping, GFP_NOFS);
fs_info->do_barriers = 1;
fs_info->closing = 0;
+ fs_info->total_pinned = 0;
INIT_DELAYED_WORK(&fs_info->trans_work, btrfs_transaction_cleaner);
BTRFS_I(fs_info->btree_inode)->root = tree_root;