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>
This commit is contained in:
parent
cf779cab14
commit
b3fe0a0da2
@ -24,7 +24,7 @@
|
|||||||
#define f2fs_bug_on(condition) BUG_ON(condition)
|
#define f2fs_bug_on(condition) BUG_ON(condition)
|
||||||
#define f2fs_down_write(x, y) down_write_nest_lock(x, y)
|
#define f2fs_down_write(x, y) down_write_nest_lock(x, y)
|
||||||
#else
|
#else
|
||||||
#define f2fs_bug_on(condition)
|
#define f2fs_bug_on(condition) WARN_ON(condition)
|
||||||
#define f2fs_down_write(x, y) down_write(x)
|
#define f2fs_down_write(x, y) down_write(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user