Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128361
b: refs/heads/master
c: 5d0c3e6
h: refs/heads/master
i:
  128359: c7b64c3
v: v3
  • Loading branch information
Chris Mason authored and David Woodhouse committed Apr 23, 2007
1 parent 44dfde5 commit dccdfcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d775673091d43b39fa9d086071009f98dec289e
refs/heads/master: 5d0c3e60fea7e23fbfbe3ab2886b444b4c702441
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ static int finish_current_insert(struct btrfs_trans_handle *trans, struct
ins.offset = 1;
ins.flags = 0;
btrfs_set_key_type(&ins, BTRFS_EXTENT_ITEM_KEY);
btrfs_set_extent_type(&extent_item, BTRFS_EXTENT_TREE);
btrfs_set_extent_owner(&extent_item, extent_root->root_key.objectid);

for (i = 0; i < extent_root->fs_info->current_insert.flags; i++) {
ins.objectid = extent_root->fs_info->current_insert.objectid +
Expand Down Expand Up @@ -356,7 +358,7 @@ static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
btrfs_set_key_type(ins, BTRFS_EXTENT_ITEM_KEY);

level = btrfs_header_level(btrfs_buffer_header(root->node));
total_needed += (level + 1) * 3;
total_needed += (level + 2) * 3;
if (root->fs_info->last_insert.objectid == 0 && search_end == (u64)-1) {
struct btrfs_disk_key *last_key;
btrfs_init_path(path);
Expand Down

0 comments on commit dccdfcd

Please sign in to comment.