diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-13 19:45:41 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-21 22:56:59 +0200 |
commit | b3fe0a0da2cb18d3c94d5ddce836e7f889d7286b (patch) | |
tree | cd3272faa8308e570e521c47c19d23328989d2c3 | |
parent | f2fs: handle EIO not to break fs consistency (diff) | |
download | linux-b3fe0a0da2cb18d3c94d5ddce836e7f889d7286b.tar.xz linux-b3fe0a0da2cb18d3c94d5ddce836e7f889d7286b.zip |
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>
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 2d009aed0c2e..2723b2d45479 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 |