Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3fe0a0d authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent cf779cab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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