mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
Btrfs: Make sure nodes have enough room for a double split
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
bcbfce8abd
commit
1514794e42
1 changed files with 1 additions and 1 deletions
|
@ -1146,7 +1146,7 @@ again:
|
||||||
slot -= 1;
|
slot -= 1;
|
||||||
p->slots[level] = slot;
|
p->slots[level] = slot;
|
||||||
if (ins_len > 0 && btrfs_header_nritems(b) >=
|
if (ins_len > 0 && btrfs_header_nritems(b) >=
|
||||||
BTRFS_NODEPTRS_PER_BLOCK(root) - 1) {
|
BTRFS_NODEPTRS_PER_BLOCK(root) - 3) {
|
||||||
int sret = split_node(trans, root, p, level);
|
int sret = split_node(trans, root, p, level);
|
||||||
BUG_ON(sret > 0);
|
BUG_ON(sret > 0);
|
||||||
if (sret)
|
if (sret)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue