aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index b8082762ca78..e5b2533b691a 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -2157,8 +2157,7 @@ static int insert_ptr(struct btrfs_trans_handle *trans, struct btrfs_root
2157 BUG_ON(!path->nodes[level]); 2157 BUG_ON(!path->nodes[level]);
2158 lower = path->nodes[level]; 2158 lower = path->nodes[level];
2159 nritems = btrfs_header_nritems(lower); 2159 nritems = btrfs_header_nritems(lower);
2160 if (slot > nritems) 2160 BUG_ON(slot > nritems);
2161 BUG();
2162 if (nritems == BTRFS_NODEPTRS_PER_BLOCK(root)) 2161 if (nritems == BTRFS_NODEPTRS_PER_BLOCK(root))
2163 BUG(); 2162 BUG();
2164 if (slot != nritems) { 2163 if (slot != nritems) {