Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128507
b: refs/heads/master
c: 5ee78ac
h: refs/heads/master
i:
  128505: 06fc521
  128503: 94f5f6e
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent d5c0c8b commit 648a90c
Show file tree
Hide file tree
Showing 2 changed files with 6 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: ff190c0c004d8e51195c7bcf5a8490aeefccbce0
refs/heads/master: 5ee78ac70f6c01f2a5acf662c2af975665710edc
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,11 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root
return ret;
}
mid = slot;
double_split = 1;
if (mid != nritems &&
leaf_space_used(l, mid, nritems - mid) +
space_needed > BTRFS_LEAF_DATA_SIZE(root)) {
double_split = 1;
}
}
}
nritems = nritems - mid;
Expand Down

0 comments on commit 648a90c

Please sign in to comment.