summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-24 09:34:34 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commitc448acf0a057debc34507277add0fc09b1b37312 (patch)
treeb188e1c73c36419ce535d4250c7b91cda7cd5e80 /fs/btrfs/ctree.c
parent1514794e4253cf4a32a2acc6de52f2527ca1bdce (diff)
downloadlinux-c448acf0a057debc34507277add0fc09b1b37312.tar.gz
linux-c448acf0a057debc34507277add0fc09b1b37312.tar.bz2
linux-c448acf0a057debc34507277add0fc09b1b37312.zip
Btrfs: Fix split_node to require more empty slots in the node as well
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 8ad8b5cc295a..ac999f0060b6 100644
--- 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;