summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorStoyan Gaydarov <stoyboyker@gmail.com>2009-04-02 23:05:11 +0200
committerChris Mason <chris.mason@oracle.com>2009-04-02 23:05:11 +0200
commitc293498be69816087746161338de4b81efdf69fc (patch)
tree32b856b67ca63e2649c8574c9a09352666362ec8 /fs/btrfs/ctree.c
parentBtrfs: remove dead code (diff)
downloadlinux-c293498be69816087746161338de4b81efdf69fc.tar.xz
linux-c293498be69816087746161338de4b81efdf69fc.zip
Btrfs: BUG to BUG_ON changes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
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
BUG_ON(!path->nodes[level]);
lower = path->nodes[level];
nritems = btrfs_header_nritems(lower);
- if (slot > nritems)
- BUG();
+ BUG_ON(slot > nritems);
if (nritems == BTRFS_NODEPTRS_PER_BLOCK(root))
BUG();
if (slot != nritems) {