Btrfs: snapshot progress
[linux-2.6-block.git] / fs / btrfs / extent-tree.c
index 7c21f63f1b93321744679dec4436edc42c43dbf2..efc604eea0b00883e015511ac9e7b737ec2d92e8 100644 (file)
@@ -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)
 {