]> git.karo-electronics.de Git - linux-beck.git/blobdiff - fs/btrfs/free-space-cache.c
Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6
[linux-beck.git] / fs / btrfs / free-space-cache.c
index 3fdadd28e935f62c42964f0e350049f63dffb7e7..768b9523662df85274e402328c618c226be5ab77 100644 (file)
@@ -253,8 +253,7 @@ int btrfs_add_free_space(struct btrfs_block_group_cache *block_group,
 
        if (ret) {
                printk(KERN_ERR "btrfs: unable to add free space :%d\n", ret);
-               if (ret == -EEXIST)
-                       BUG();
+               BUG_ON(ret == -EEXIST);
        }
 
        return ret;