summaryrefslogtreecommitdiff
path: root/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-27 09:15:24 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-27 09:15:24 -0400
commit03b3655fb4b0d1c4e96338a8f8c379a32ca8e071 (patch)
tree92173057b29eece958dda7f5e1133f50d7f53308 /ctree.c
parente6819928c848adf5cb2c41f963e4e38474e95915 (diff)
add generation to file extents
Diffstat (limited to 'ctree.c')
-rw-r--r--ctree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctree.c b/ctree.c
index 32922643..b0b13bca 100644
--- a/ctree.c
+++ b/ctree.c
@@ -746,6 +746,7 @@ static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root
split_buffer = btrfs_alloc_free_block(trans, root);
split = &split_buffer->node;
btrfs_set_header_flags(&split->header, btrfs_header_flags(&c->header));
+ btrfs_set_header_level(&split->header, btrfs_header_level(&c->header));
btrfs_set_header_blocknr(&split->header, split_buffer->blocknr);
btrfs_set_header_parentid(&split->header,
btrfs_header_parentid(&root->node->node.header));