aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inode.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-10-29 15:14:54 +0900
committerZiyan <jaraidaniel@gmail.com>2015-05-02 14:35:23 +0200
commitff5dcafd254893f2f92812f582db5d832c2c5355 (patch)
tree6555048327cf30ad1d9a5a2bf5aa35e0f69bc166 /fs/f2fs/inode.c
parentf357e7d48ece0ae44e38ac8df455aff66bf3fb17 (diff)
downloadkernel_samsung_tuna-ff5dcafd254893f2f92812f582db5d832c2c5355.zip
kernel_samsung_tuna-ff5dcafd254893f2f92812f582db5d832c2c5355.tar.gz
kernel_samsung_tuna-ff5dcafd254893f2f92812f582db5d832c2c5355.tar.bz2
f2fs: add an option to avoid unnecessary BUG_ONs
If you want to remove unnecessary BUG_ONs, you can just turn off F2FS_CHECK_FS in your kernel config. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r--fs/f2fs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index 6db45bb..7f78390 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -266,7 +266,7 @@ void f2fs_evict_inode(struct inode *inode)
inode->i_ino == F2FS_META_INO(sbi))
goto no_delete;
- BUG_ON(atomic_read(&F2FS_I(inode)->dirty_dents));
+ f2fs_bug_on(atomic_read(&F2FS_I(inode)->dirty_dents));
remove_dirty_dir_inode(inode);
if (inode->i_nlink || is_bad_inode(inode))