18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig JBD2
38c2ecf20Sopenharmony_ci	tristate
48c2ecf20Sopenharmony_ci	select CRC32
58c2ecf20Sopenharmony_ci	select CRYPTO
68c2ecf20Sopenharmony_ci	select CRYPTO_CRC32C
78c2ecf20Sopenharmony_ci	help
88c2ecf20Sopenharmony_ci	  This is a generic journaling layer for block devices that support
98c2ecf20Sopenharmony_ci	  both 32-bit and 64-bit block numbers.  It is currently used by
108c2ecf20Sopenharmony_ci	  the ext4 and OCFS2 filesystems, but it could also be used to add
118c2ecf20Sopenharmony_ci	  journal support to other file systems or block devices such
128c2ecf20Sopenharmony_ci	  as RAID or LVM.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci	  If you are using ext4 or OCFS2, you need to say Y here.
158c2ecf20Sopenharmony_ci	  If you are not using ext4 or OCFS2 then you will
168c2ecf20Sopenharmony_ci	  probably want to say N.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci	  To compile this device as a module, choose M here. The module will be
198c2ecf20Sopenharmony_ci	  called jbd2.  If you are compiling ext4 or OCFS2 into the kernel,
208c2ecf20Sopenharmony_ci	  you cannot compile this code as a module.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciconfig JBD2_DEBUG
238c2ecf20Sopenharmony_ci	bool "JBD2 (ext4) debugging support"
248c2ecf20Sopenharmony_ci	depends on JBD2
258c2ecf20Sopenharmony_ci	help
268c2ecf20Sopenharmony_ci	  If you are using the ext4 journaled file system (or
278c2ecf20Sopenharmony_ci	  potentially any other filesystem/device using JBD2), this option
288c2ecf20Sopenharmony_ci	  allows you to enable debugging output while the system is running,
298c2ecf20Sopenharmony_ci	  in order to help track down any problems you are having.
308c2ecf20Sopenharmony_ci	  By default, the debugging output will be turned off.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	  If you select Y here, then you will be able to turn on debugging
338c2ecf20Sopenharmony_ci	  with "echo N > /sys/module/jbd2/parameters/jbd2_debug", where N is a
348c2ecf20Sopenharmony_ci	  number between 1 and 5. The higher the number, the more debugging
358c2ecf20Sopenharmony_ci	  output is generated.  To turn debugging off again, do
368c2ecf20Sopenharmony_ci	  "echo 0 > /sys/module/jbd2/parameters/jbd2_debug".
37