projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1514794
)
Btrfs: Fix split_node to require more empty slots in the node as well
author
Chris Mason
<chris.mason@oracle.com>
Thu, 24 Apr 2008 13:34:34 +0000
(09:34 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000
(11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/ctree.c
b/fs/btrfs/ctree.c
index 8ad8b5cc295ac3eb6144789161b95d56dae43aa6..ac999f0060b6e2d507db097948ea2de9fc89f8bc 100644
(file)
--- a/
fs/btrfs/ctree.c
+++ b/
fs/btrfs/ctree.c
@@
-1485,7
+1485,7
@@
static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root
ret = push_nodes_for_insert(trans, root, path, level);
c = path->nodes[level];
if (!ret && btrfs_header_nritems(c) <
- BTRFS_NODEPTRS_PER_BLOCK(root) -
1
)
+ BTRFS_NODEPTRS_PER_BLOCK(root) -
3
)
return 0;
if (ret < 0)
return ret;