Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128288
b: refs/heads/master
c: 4068947
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason authored and David Woodhouse committed Mar 17, 2007
1 parent fc3b261 commit 186e0ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e089f05c18ab36ed5fa7e2319052e03ab800d518
refs/heads/master: 4068947886f2d2a4c192941397bacd014a04b804
5 changes: 5 additions & 0 deletions trunk/fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ static int balance_level(struct btrfs_trans_handle *trans, struct btrfs_root
parent_buf = path->nodes[level + 1];
pslot = path->slots[level + 1];

/*
* deal with the case where there is only one pointer in the root
* by promoting the node below to a root
*/
if (!parent_buf) {
struct btrfs_buffer *child;
u64 blocknr = mid_buf->blocknr;
Expand Down Expand Up @@ -1043,6 +1047,7 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root
int ret;
int wret;

/* first try to make some room by pushing left and right */
wret = push_leaf_left(trans, root, path, data_size);
if (wret < 0)
return wret;
Expand Down

0 comments on commit 186e0ea

Please sign in to comment.