]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
f2fs: add WARN_ON in f2fs_bug_on
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 13 Aug 2014 17:45:41 +0000 (10:45 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 21 Aug 2014 20:56:59 +0000 (13:56 -0700)
This patch adds WARN_ON when f2fs_bug_on is disable to see kernel messages.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h

index 2d009aed0c2ea8a89ff591c313b08fff1c6550c0..2723b2d454792210788f5f2b308c62f39821eadc 100644 (file)
@@ -24,7 +24,7 @@
 #define f2fs_bug_on(condition) BUG_ON(condition)
 #define f2fs_down_write(x, y)  down_write_nest_lock(x, y)
 #else
-#define f2fs_bug_on(condition)
+#define f2fs_bug_on(condition) WARN_ON(condition)
 #define f2fs_down_write(x, y)  down_write(x)
 #endif