Btrfs: BUG to BUG_ON changes
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
committed by
Chris Mason
parent
3e7ad38d20
commit
c293498be6
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user