Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128595
b: refs/heads/master
c: 1372f8e
h: refs/heads/master
i:
  128593: b2da9c5
  128591: fe91133
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent d1f76e8 commit 5ebd988
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 2552488345ea0933711010ee2c844792130a4252
refs/heads/master: 1372f8e609d260c2352bf74e125614eef7aee8ef
10 changes: 9 additions & 1 deletion trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,15 @@ int btrfs_shrink_extent_tree(struct btrfs_root *root, u64 new_size)
break;
}
leaf = path->nodes[0];
nritems = btrfs_header_nritems(leaf);
btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);

/*
* btrfs_next_leaf doesn't cow buffers, we have to
* do the search again
*/
memcpy(&key, &found_key, sizeof(key));
btrfs_release_path(root, path);
continue;
}

btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
Expand Down

0 comments on commit 5ebd988

Please sign in to comment.