162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciconfig JBD2
362306a36Sopenharmony_ci	tristate
462306a36Sopenharmony_ci	select CRC32
562306a36Sopenharmony_ci	select CRYPTO
662306a36Sopenharmony_ci	select CRYPTO_CRC32C
762306a36Sopenharmony_ci	help
862306a36Sopenharmony_ci	  This is a generic journaling layer for block devices that support
962306a36Sopenharmony_ci	  both 32-bit and 64-bit block numbers.  It is currently used by
1062306a36Sopenharmony_ci	  the ext4 and OCFS2 filesystems, but it could also be used to add
1162306a36Sopenharmony_ci	  journal support to other file systems or block devices such
1262306a36Sopenharmony_ci	  as RAID or LVM.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci	  If you are using ext4 or OCFS2, you need to say Y here.
1562306a36Sopenharmony_ci	  If you are not using ext4 or OCFS2 then you will
1662306a36Sopenharmony_ci	  probably want to say N.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	  To compile this device as a module, choose M here. The module will be
1962306a36Sopenharmony_ci	  called jbd2.  If you are compiling ext4 or OCFS2 into the kernel,
2062306a36Sopenharmony_ci	  you cannot compile this code as a module.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciconfig JBD2_DEBUG
2362306a36Sopenharmony_ci	bool "JBD2 (ext4) debugging support"
2462306a36Sopenharmony_ci	depends on JBD2
2562306a36Sopenharmony_ci	help
2662306a36Sopenharmony_ci	  If you are using the ext4 journaled file system (or
2762306a36Sopenharmony_ci	  potentially any other filesystem/device using JBD2), this option
2862306a36Sopenharmony_ci	  allows you to enable debugging output while the system is running,
2962306a36Sopenharmony_ci	  in order to help track down any problems you are having.
3062306a36Sopenharmony_ci	  By default, the debugging output will be turned off.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	  If you select Y here, then you will be able to turn on debugging
3362306a36Sopenharmony_ci	  with "echo N > /sys/module/jbd2/parameters/jbd2_debug", where N is a
3462306a36Sopenharmony_ci	  number between 1 and 5. The higher the number, the more debugging
3562306a36Sopenharmony_ci	  output is generated.  To turn debugging off again, do
3662306a36Sopenharmony_ci	  "echo 0 > /sys/module/jbd2/parameters/jbd2_debug".
37