projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf779ca
)
f2fs: add WARN_ON in f2fs_bug_on
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 13 Aug 2014 17:45:41 +0000
(10:45 -0700)
committer
Jaegeuk 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
patch
|
blob
|
history
diff --git
a/fs/f2fs/f2fs.h
b/fs/f2fs/f2fs.h
index
2d009ae
..
2723b2d
100644
(file)
--- 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