commit | c293498be69816087746161338de4b81efdf69fc | [log] [tgz] |
---|---|---|
author | Stoyan Gaydarov <stoyboyker@gmail.com> | Thu Apr 02 17:05:11 2009 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Apr 02 17:05:11 2009 -0400 |
tree | 32b856b67ca63e2649c8574c9a09352666362ec8 | |
parent | 3e7ad38d20ad113158d1b4c9de0f51c04f50d4f7 [diff] [blame] |
Btrfs: BUG to BUG_ON changes Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index b808276..e5b2533 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c
@@ -2157,8 +2157,7 @@ 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) {