Btrfs: BUG to BUG_ON changes

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Stoyan Gaydarov
2009-04-02 17:05:11 -04:00
committed by Chris Mason
parent 3e7ad38d20
commit c293498be6
3 changed files with 3 additions and 6 deletions

View File

@@ -1222,8 +1222,7 @@ insert:
ret = insert_one_name(trans, root, path, key->objectid, key->offset,
name, name_len, log_type, &log_key);
if (ret && ret != -ENOENT)
BUG();
BUG_ON(ret && ret != -ENOENT);
goto out;
}