diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-10 16:58:11 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-10 16:58:11 -0400 |
commit | 2619ba1f0ff9540a9d84683310a1e350b5efde3d (patch) | |
tree | b027c1c51630d215fd40be34a72f7bc308b34652 /fs/btrfs/transaction.c | |
parent | 2932f3ec94ff0212313b8187064f93bcb76ce411 (diff) |
Btrfs: subvolumes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index f64c1729b0e1..e15a072407bf 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -64,7 +64,8 @@ struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, | |||
64 | if (root != root->fs_info->tree_root && root->last_trans < | 64 | if (root != root->fs_info->tree_root && root->last_trans < |
65 | running_trans_id) { | 65 | running_trans_id) { |
66 | radix_tree_tag_set(&root->fs_info->fs_roots_radix, | 66 | radix_tree_tag_set(&root->fs_info->fs_roots_radix, |
67 | (unsigned long)root, BTRFS_ROOT_TRANS_TAG); | 67 | (unsigned long)root->root_key.objectid, |
68 | BTRFS_ROOT_TRANS_TAG); | ||
68 | root->commit_root = root->node; | 69 | root->commit_root = root->node; |
69 | get_bh(root->node); | 70 | get_bh(root->node); |
70 | } | 71 | } |
@@ -171,8 +172,9 @@ int add_dirty_roots(struct btrfs_trans_handle *trans, | |||
171 | break; | 172 | break; |
172 | for (i = 0; i < ret; i++) { | 173 | for (i = 0; i < ret; i++) { |
173 | root = gang[i]; | 174 | root = gang[i]; |
174 | radix_tree_tag_clear(radix, (unsigned long)root, | 175 | radix_tree_tag_clear(radix, |
175 | BTRFS_ROOT_TRANS_TAG); | 176 | (unsigned long)root->root_key.objectid, |
177 | BTRFS_ROOT_TRANS_TAG); | ||
176 | if (root->commit_root == root->node) { | 178 | if (root->commit_root == root->node) { |
177 | WARN_ON(root->node->b_blocknr != | 179 | WARN_ON(root->node->b_blocknr != |
178 | btrfs_root_blocknr(&root->root_item)); | 180 | btrfs_root_blocknr(&root->root_item)); |