]> git.karo-electronics.de Git - linux-beck.git/blobdiff - fs/btrfs/ctree.c
Merge branch 'linus' into core/softlockup
[linux-beck.git] / fs / btrfs / ctree.c
index b8082762ca78dd72bb177548bd7fbbcd2173bfd3..e5b2533b691a3040f108d517efea04ccfdcc6117 100644 (file)
@@ -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) {