summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason2007-04-10 15:27:04 +0200
committerDavid Woodhouse2007-04-10 15:27:04 +0200
commitc5739bba5260a59cebd20a51a55080592c8d3b07 (patch)
treeff33f7acddcfc60e7395209ff949bb9d90afda32 /fs/btrfs/extent-tree.c
parentBtrfs: groundwork for subvolume and snapshot roots (diff)
downloadkernel-qcow2-linux-c5739bba5260a59cebd20a51a55080592c8d3b07.tar.gz
kernel-qcow2-linux-c5739bba5260a59cebd20a51a55080592c8d3b07.tar.xz
kernel-qcow2-linux-c5739bba5260a59cebd20a51a55080592c8d3b07.zip
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.c6
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
return 0;
}
+int btrfs_inc_root_ref(struct btrfs_trans_handle *trans,
+ struct btrfs_root *root)
+{
+ return inc_block_ref(trans, root, root->node->b_blocknr, 1);
+}
+
int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
struct buffer_head *buf)
{