diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-10 09:27:04 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-10 09:27:04 -0400 |
commit | c5739bba5260a59cebd20a51a55080592c8d3b07 (patch) | |
tree | ff33f7acddcfc60e7395209ff949bb9d90afda32 /fs/btrfs/extent-tree.c | |
parent | 0f7d52f4431c530b4f39c524448c688bb7754de5 (diff) |
Btrfs: snapshot progress
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 7c21f63f1b93..efc604eea0b0 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -77,6 +77,12 @@ static int lookup_block_ref(struct btrfs_trans_handle *trans, struct btrfs_root | |||
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
79 | 79 | ||
80 | int btrfs_inc_root_ref(struct btrfs_trans_handle *trans, | ||
81 | struct btrfs_root *root) | ||
82 | { | ||
83 | return inc_block_ref(trans, root, root->node->b_blocknr, 1); | ||
84 | } | ||
85 | |||
80 | int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 86 | int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, |
81 | struct buffer_head *buf) | 87 | struct buffer_head *buf) |
82 | { | 88 | { |