summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-08-13 10:45:41 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-08-21 13:56:59 -0700
commitb3fe0a0da2cb18d3c94d5ddce836e7f889d7286b (patch)
treecd3272faa8308e570e521c47c19d23328989d2c3 /fs/f2fs
parentcf779cab14d50a84b61399f758da269654b863db (diff)
downloadop-kernel-dev-b3fe0a0da2cb18d3c94d5ddce836e7f889d7286b.zip
op-kernel-dev-b3fe0a0da2cb18d3c94d5ddce836e7f889d7286b.tar.gz
f2fs: add WARN_ON in f2fs_bug_on
This patch adds WARN_ON when f2fs_bug_on is disable to see kernel messages. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 2d009ae..2723b2d 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -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
OpenPOWER on IntegriCloud