f2fs: add an option to avoid unnecessary BUG_ONs
[deliverable/linux.git] / fs / f2fs / dir.c
index c9d53fc510c5b83a498f34aebd830b3eb646bb06..594fc1bb64ef44f1ea734ec7222b710a670b37fe 100644 (file)
@@ -139,7 +139,7 @@ static struct f2fs_dir_entry *find_in_level(struct inode *dir,
        bool room = false;
        int max_slots = 0;
 
-       BUG_ON(level > MAX_DIR_HASH_DEPTH);
+       f2fs_bug_on(level > MAX_DIR_HASH_DEPTH);
 
        nbucket = dir_buckets(level);
        nblock = bucket_blocks(level);
This page took 0.024774 seconds and 5 git commands to generate.