diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-10 12:36:36 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-10 12:36:36 -0400 |
commit | d0dbc6245cefa36e19dff49c557ccf05e3063e9c (patch) | |
tree | 88d01c9d2dbfc92aea35523f77e32d81310e3e56 /fs/btrfs/ctree.c | |
parent | 1b05da2ee6217e7d55460d04335813fec25be4ca (diff) |
Btrfs: drop owner and parentid
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 39b551564fcf..f31ac843bf2e 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -688,8 +688,6 @@ static int insert_new_root(struct btrfs_trans_handle *trans, struct btrfs_root | |||
688 | btrfs_set_header_level(&c->header, level); | 688 | btrfs_set_header_level(&c->header, level); |
689 | btrfs_set_header_blocknr(&c->header, t->b_blocknr); | 689 | btrfs_set_header_blocknr(&c->header, t->b_blocknr); |
690 | btrfs_set_header_generation(&c->header, trans->transid); | 690 | btrfs_set_header_generation(&c->header, trans->transid); |
691 | btrfs_set_header_parentid(&c->header, | ||
692 | btrfs_header_parentid(btrfs_buffer_header(root->node))); | ||
693 | lower = btrfs_buffer_node(path->nodes[level-1]); | 691 | lower = btrfs_buffer_node(path->nodes[level-1]); |
694 | memcpy(c->header.fsid, root->fs_info->disk_super->fsid, | 692 | memcpy(c->header.fsid, root->fs_info->disk_super->fsid, |
695 | sizeof(c->header.fsid)); | 693 | sizeof(c->header.fsid)); |
@@ -784,8 +782,6 @@ static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root | |||
784 | btrfs_set_header_level(&split->header, btrfs_header_level(&c->header)); | 782 | btrfs_set_header_level(&split->header, btrfs_header_level(&c->header)); |
785 | btrfs_set_header_blocknr(&split->header, split_buffer->b_blocknr); | 783 | btrfs_set_header_blocknr(&split->header, split_buffer->b_blocknr); |
786 | btrfs_set_header_generation(&split->header, trans->transid); | 784 | btrfs_set_header_generation(&split->header, trans->transid); |
787 | btrfs_set_header_parentid(&split->header, | ||
788 | btrfs_header_parentid(btrfs_buffer_header(root->node))); | ||
789 | memcpy(split->header.fsid, root->fs_info->disk_super->fsid, | 785 | memcpy(split->header.fsid, root->fs_info->disk_super->fsid, |
790 | sizeof(split->header.fsid)); | 786 | sizeof(split->header.fsid)); |
791 | mid = (c_nritems + 1) / 2; | 787 | mid = (c_nritems + 1) / 2; |
@@ -1145,8 +1141,6 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root | |||
1145 | btrfs_set_header_blocknr(&right->header, right_buffer->b_blocknr); | 1141 | btrfs_set_header_blocknr(&right->header, right_buffer->b_blocknr); |
1146 | btrfs_set_header_generation(&right->header, trans->transid); | 1142 | btrfs_set_header_generation(&right->header, trans->transid); |
1147 | btrfs_set_header_level(&right->header, 0); | 1143 | btrfs_set_header_level(&right->header, 0); |
1148 | btrfs_set_header_parentid(&right->header, | ||
1149 | btrfs_header_parentid(btrfs_buffer_header(root->node))); | ||
1150 | memcpy(right->header.fsid, root->fs_info->disk_super->fsid, | 1144 | memcpy(right->header.fsid, root->fs_info->disk_super->fsid, |
1151 | sizeof(right->header.fsid)); | 1145 | sizeof(right->header.fsid)); |
1152 | if (mid <= slot) { | 1146 | if (mid <= slot) { |
@@ -1237,8 +1231,6 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root | |||
1237 | btrfs_set_header_blocknr(&right->header, right_buffer->b_blocknr); | 1231 | btrfs_set_header_blocknr(&right->header, right_buffer->b_blocknr); |
1238 | btrfs_set_header_generation(&right->header, trans->transid); | 1232 | btrfs_set_header_generation(&right->header, trans->transid); |
1239 | btrfs_set_header_level(&right->header, 0); | 1233 | btrfs_set_header_level(&right->header, 0); |
1240 | btrfs_set_header_parentid(&right->header, | ||
1241 | btrfs_header_parentid(btrfs_buffer_header(root->node))); | ||
1242 | memcpy(right->header.fsid, root->fs_info->disk_super->fsid, | 1234 | memcpy(right->header.fsid, root->fs_info->disk_super->fsid, |
1243 | sizeof(right->header.fsid)); | 1235 | sizeof(right->header.fsid)); |
1244 | btrfs_cpu_key_to_disk(&disk_key, ins_key); | 1236 | btrfs_cpu_key_to_disk(&disk_key, ins_key); |