[PATCH 1/2] f2fs: introduce CONFIG_F2FS_CHECK_FS for BUG_ON control

From: Jaegeuk Kim
Date: Tue Oct 29 2013 - 02:54:00 EST

This config will support an option to remove so many BUG_ONs that degrade
the performance potentially.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@xxxxxxxxxxx>
fs/f2fs/Kconfig | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/fs/f2fs/Kconfig b/fs/f2fs/Kconfig
index e06e099..214fe10 100644
--- a/fs/f2fs/Kconfig
+++ b/fs/f2fs/Kconfig
@@ -63,3 +63,11 @@ config F2FS_FS_SECURITY
the extended attribute support in advance.

If you are not using a security module, say N.
+config F2FS_CHECK_FS
+ bool "F2FS consistency checking feature"
+ depends on F2FS_FS
+ help
+ Enables BUG_ONs which check the file system consistency in runtime.
+ If you want to improve the performance, say N.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/