mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
925c86a19b
Add a new config option that controls building the buffer_head code, and select it from all file systems and stacking drivers that need it. For the block device nodes and alternative iomap based buffered I/O path is provided when buffer_head support is not enabled, and iomap needs a a small tweak to define the IOMAP_F_BUFFER_HEAD flag to 0 to not call into the buffer_head code when it doesn't exist. Otherwise this is just Kconfig and ifdef changes. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20230801172201.1923299-7-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
80 lines
2.5 KiB
Plaintext
80 lines
2.5 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config OCFS2_FS
|
|
tristate "OCFS2 file system support"
|
|
depends on INET && SYSFS && CONFIGFS_FS
|
|
select BUFFER_HEAD
|
|
select JBD2
|
|
select CRC32
|
|
select QUOTA
|
|
select QUOTA_TREE
|
|
select FS_POSIX_ACL
|
|
select LEGACY_DIRECT_IO
|
|
help
|
|
OCFS2 is a general purpose extent based shared disk cluster file
|
|
system with many similarities to ext3. It supports 64 bit inode
|
|
numbers, and has automatically extending metadata groups which may
|
|
also make it attractive for non-clustered use.
|
|
|
|
You'll want to install the ocfs2-tools package in order to at least
|
|
get "mount.ocfs2".
|
|
|
|
Project web page: https://ocfs2.wiki.kernel.org/
|
|
Tools web page: https://github.com/markfasheh/ocfs2-tools
|
|
OCFS2 mailing lists: https://subspace.kernel.org/lists.linux.dev.html
|
|
|
|
For more information on OCFS2, see the file
|
|
<file:Documentation/filesystems/ocfs2.rst>.
|
|
|
|
config OCFS2_FS_O2CB
|
|
tristate "O2CB Kernelspace Clustering"
|
|
depends on OCFS2_FS
|
|
default y
|
|
help
|
|
OCFS2 includes a simple kernelspace clustering package, the OCFS2
|
|
Cluster Base. It only requires a very small userspace component
|
|
to configure it. This comes with the standard ocfs2-tools package.
|
|
O2CB is limited to maintaining a cluster for OCFS2 file systems.
|
|
It cannot manage any other cluster applications.
|
|
|
|
It is always safe to say Y here, as the clustering method is
|
|
run-time selectable.
|
|
|
|
config OCFS2_FS_USERSPACE_CLUSTER
|
|
tristate "OCFS2 Userspace Clustering"
|
|
depends on OCFS2_FS && DLM
|
|
default y
|
|
help
|
|
This option will allow OCFS2 to use userspace clustering services
|
|
in conjunction with the DLM in fs/dlm. If you are using a
|
|
userspace cluster manager, say Y here.
|
|
|
|
It is safe to say Y, as the clustering method is run-time
|
|
selectable.
|
|
|
|
config OCFS2_FS_STATS
|
|
bool "OCFS2 statistics"
|
|
depends on OCFS2_FS && DEBUG_FS
|
|
default y
|
|
help
|
|
This option allows some fs statistics to be captured. Enabling
|
|
this option may increase the memory consumption.
|
|
|
|
config OCFS2_DEBUG_MASKLOG
|
|
bool "OCFS2 logging support"
|
|
depends on OCFS2_FS
|
|
default y
|
|
help
|
|
The ocfs2 filesystem has an extensive logging system. The system
|
|
allows selection of events to log via files in /sys/o2cb/logmask/.
|
|
This option will enlarge your kernel, but it allows debugging of
|
|
ocfs2 filesystem issues.
|
|
|
|
config OCFS2_DEBUG_FS
|
|
bool "OCFS2 expensive checks"
|
|
depends on OCFS2_FS
|
|
default n
|
|
help
|
|
This option will enable expensive consistency checks. Enable
|
|
this option for debugging only as it is likely to decrease
|
|
performance of the filesystem.
|