diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-09-03 23:03:41 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-10-13 20:02:43 -0400 |
commit | 2b4e30fbde425828b17f0e9c8f8e3fd3ecb2bc75 (patch) | |
tree | 5b340cde72e058b51642f0c7255818f62014bc91 /fs/Kconfig | |
parent | 12462f1d9f0b96389497438dc2730c6f7410be82 (diff) |
ocfs2: Switch over to JBD2.
ocfs2 wants JBD2 for many reasons, not the least of which is that JBD is
limiting our maximum filesystem size.
It's a pretty trivial change. Most functions are just renamed. The
only functional change is moving to Jan's inode-based ordered data mode.
It's better, too.
Because JBD2 reads and writes JBD journals, this is compatible with any
existing filesystem. It can even interact with JBD-based ocfs2 as long
as the journal is formated for JBD.
We provide a compatibility option so that paranoid people can still use
JBD for the time being. This will go away shortly.
[ Moved call of ocfs2_begin_ordered_truncate() from ocfs2_delete_inode() to
ocfs2_truncate_for_delete(). --Mark ]
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/Kconfig')
-rw-r--r-- | fs/Kconfig | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/fs/Kconfig b/fs/Kconfig index f54a157a029..4be00d81257 100644 --- a/fs/Kconfig +++ b/fs/Kconfig | |||
@@ -220,17 +220,16 @@ config JBD | |||
220 | tristate | 220 | tristate |
221 | help | 221 | help |
222 | This is a generic journalling layer for block devices. It is | 222 | This is a generic journalling layer for block devices. It is |
223 | currently used by the ext3 and OCFS2 file systems, but it could | 223 | currently used by the ext3 file system, but it could also be |
224 | also be used to add journal support to other file systems or block | 224 | used to add journal support to other file systems or block |
225 | devices such as RAID or LVM. | 225 | devices such as RAID or LVM. |
226 | 226 | ||
227 | If you are using the ext3 or OCFS2 file systems, you need to | 227 | If you are using the ext3 file system, you need to say Y here. |
228 | say Y here. If you are not using ext3 OCFS2 then you will probably | 228 | If you are not using ext3 then you will probably want to say N. |
229 | want to say N. | ||
230 | 229 | ||
231 | To compile this device as a module, choose M here: the module will be | 230 | To compile this device as a module, choose M here: the module will be |
232 | called jbd. If you are compiling ext3 or OCFS2 into the kernel, | 231 | called jbd. If you are compiling ext3 into the kernel, you |
233 | you cannot compile this code as a module. | 232 | cannot compile this code as a module. |
234 | 233 | ||
235 | config JBD_DEBUG | 234 | config JBD_DEBUG |
236 | bool "JBD (ext3) debugging support" | 235 | bool "JBD (ext3) debugging support" |
@@ -254,15 +253,16 @@ config JBD2 | |||
254 | help | 253 | help |
255 | This is a generic journaling layer for block devices that support | 254 | This is a generic journaling layer for block devices that support |
256 | both 32-bit and 64-bit block numbers. It is currently used by | 255 | both 32-bit and 64-bit block numbers. It is currently used by |
257 | the ext4 filesystem, but it could also be used to add | 256 | the ext4 and OCFS2 filesystems, but it could also be used to add |
258 | journal support to other file systems or block devices such | 257 | journal support to other file systems or block devices such |
259 | as RAID or LVM. | 258 | as RAID or LVM. |
260 | 259 | ||
261 | If you are using ext4, you need to say Y here. If you are not | 260 | If you are using ext4 or OCFS2, you need to say Y here. |
262 | using ext4 then you will probably want to say N. | 261 | If you are not using ext4 or OCFS2 then you will |
262 | probably want to say N. | ||
263 | 263 | ||
264 | To compile this device as a module, choose M here. The module will be | 264 | To compile this device as a module, choose M here. The module will be |
265 | called jbd2. If you are compiling ext4 into the kernel, | 265 | called jbd2. If you are compiling ext4 or OCFS2 into the kernel, |
266 | you cannot compile this code as a module. | 266 | you cannot compile this code as a module. |
267 | 267 | ||
268 | config JBD2_DEBUG | 268 | config JBD2_DEBUG |
@@ -440,7 +440,7 @@ config OCFS2_FS | |||
440 | tristate "OCFS2 file system support" | 440 | tristate "OCFS2 file system support" |
441 | depends on NET && SYSFS | 441 | depends on NET && SYSFS |
442 | select CONFIGFS_FS | 442 | select CONFIGFS_FS |
443 | select JBD | 443 | select JBD2 |
444 | select CRC32 | 444 | select CRC32 |
445 | help | 445 | help |
446 | OCFS2 is a general purpose extent based shared disk cluster file | 446 | OCFS2 is a general purpose extent based shared disk cluster file |
@@ -511,6 +511,16 @@ config OCFS2_DEBUG_FS | |||
511 | this option for debugging only as it is likely to decrease | 511 | this option for debugging only as it is likely to decrease |
512 | performance of the filesystem. | 512 | performance of the filesystem. |
513 | 513 | ||
514 | config OCFS2_COMPAT_JBD | ||
515 | bool "Use JBD for compatibility" | ||
516 | depends on OCFS2_FS | ||
517 | default n | ||
518 | select JBD | ||
519 | help | ||
520 | The ocfs2 filesystem now uses JBD2 for its journalling. JBD2 | ||
521 | is backwards compatible with JBD. It is safe to say N here. | ||
522 | However, if you really want to use the original JBD, say Y here. | ||
523 | |||
514 | endif # BLOCK | 524 | endif # BLOCK |
515 | 525 | ||
516 | config DNOTIFY | 526 | config DNOTIFY |