Skip to contentSkip to conversation

ext4: mark data=journal as deprecated and will be removed in January 2028.

PATCH In review Theodore Ts'o 4 participants 4 messages Sep 24 – Sep 28

Subsystems (2)
lore
Share & tools
lore

Theodore Ts'o

author maintainer
#0 lore raw

PATCH 1/1 ext4: mark data=journal as deprecated and will be removed in January 2028.

---
 Documentation/admin-guide/ext4.rst | 6 ++++--
 fs/ext4/super.c                    | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
Documentation/admin-guide/ext4.rst +4 -2
index ac0c709ea9e7..7aa586c27e37 100644
@@ -172,7 +172,8 @@ When mounting an ext4 filesystem, the following option are accepted:
   data=journal
         All data are committed into the journal prior to being written into the
         main file system.  Enabling this mode will disable delayed allocation
-        and O_DIRECT support.
+        and O_DIRECT support.  This feature is deprecated and support
+	will be removed in January 2028.
 
   data=ordered	(*)
         All data are forced directly out to the main file system prior to its
@@ -420,7 +421,8 @@ There are 3 different data modes:
   consistent state.  This mode is the slowest except when data needs to be read
   from and written to disk at the same time where it outperforms all others
   modes.  Enabling this mode will disable delayed allocation and O_DIRECT
-  support.
+  support.  The data=journal feature is deprecated and support will be
+  removed in January 2028.
 
 /proc entries
 =============
fs/ext4/super.c +1 -0
index a187112cafaf..8da79cc8593f 100644
@@ -5049,6 +5049,7 @@ static int ext4_load_and_init_journal(struct super_block *sb,
 static int ext4_check_journal_data_mode(struct super_block *sb)
 {
 	if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
+		printk(KERN_WARNING "EXT4-fs: The data=journal mount option is deprecated and support will be removed in January 2028\n");
 		printk_once(KERN_WARNING "EXT4-fs: Warning: mounting with "
 			    "data=journal disables delayed allocation, "
 			    "dioread_nolock, O_DIRECT and fast_commit support!\n");
Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Theodore Ts'o

Woooooooo

--D

Quoted 45 lines
---
 Documentation/admin-guide/ext4.rst | 6 ++++--
 fs/ext4/super.c                    | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
Documentation/admin-guide/ext4.rst +4 -2
index ac0c709ea9e7..7aa586c27e37 100644
@@ -172,7 +172,8 @@ When mounting an ext4 filesystem, the following option are accepted:
   data=journal
         All data are committed into the journal prior to being written into the
         main file system.  Enabling this mode will disable delayed allocation
-        and O_DIRECT support.
+        and O_DIRECT support.  This feature is deprecated and support
+	will be removed in January 2028.
 
   data=ordered	(*)
         All data are forced directly out to the main file system prior to its
@@ -420,7 +421,8 @@ There are 3 different data modes:
   consistent state.  This mode is the slowest except when data needs to be read
   from and written to disk at the same time where it outperforms all others
   modes.  Enabling this mode will disable delayed allocation and O_DIRECT
-  support.
+  support.  The data=journal feature is deprecated and support will be
+  removed in January 2028.
 
 /proc entries
 =============
fs/ext4/super.c +1 -0
index a187112cafaf..8da79cc8593f 100644
@@ -5049,6 +5049,7 @@ static int ext4_load_and_init_journal(struct super_block *sb,
 static int ext4_check_journal_data_mode(struct super_block *sb)
 {
 	if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
+		printk(KERN_WARNING "EXT4-fs: The data=journal mount option is deprecated and support will be removed in January 2028\n");
 		printk_once(KERN_WARNING "EXT4-fs: Warning: mounting with "
 			    "data=journal disables delayed allocation, "
 			    "dioread_nolock, O_DIRECT and fast_commit support!\n");
Signature · 1 line
2.53.0
#2 lore raw
In reply to Theodore Ts'o
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] ext4: missing device name in data=journal deprecation warning --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] ext4: missing device name in data=journal deprecation warning
--

commit 268d23e9918bb20498a07197e8ffc2af5574d8ca
Author: Theodore Ts'o <[email protected]>

ext4: mark data=journal as deprecated and will be removed in January 2028.

This commit marks the data=journal mount option as deprecated. It updates the admin guide documentation and adds a warning during mount indicating that support will be removed in January 2028.

fs/ext4/super.c static int ext4_load_and_init_journal(struct super_block *sb, · line 5060

Quoted 9 lines
fs/ext4/super.c +1 -0
index bca0dc87d0b7c..d636b89090a24 100644
@@ -5057,6 +5057,7 @@ static int ext4_load_and_init_journal(struct super_block *sb,
 static int ext4_check_journal_data_mode(struct super_block *sb)
 {
 	if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
+		printk(KERN_WARNING "EXT4-fs: The data=journal mount option is deprecated and support will be removed in January 2028\n");

[Severity: Low]
Does this code omit the filesystem device name from the log message?

Using printk() instead of the standard ext4_msg() helper means that the superblock's device identifier (e.g., sda1) is not included in the warning. Should this use ext4_msg(sb, KERN_WARNING, "The data=journal...") so that administrators managing multiple ext4 filesystems can determine which specific device is using the deprecated option?

Quoted 3 lines
fs/ext4/super.c +0 -0
 		printk_once(KERN_WARNING "EXT4-fs: Warning: mounting with "
 			    "data=journal disables delayed allocation, "
 			    "dioread_nolock, O_DIRECT and fast_commit support!\n");
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Reviewed-by on v1 1/1
#3 lore raw
In reply to Theodore Ts'o
Quoted 1 line · Theodore Ts'o

Wow, this is a significant and great decision!

Quoted 41 lines
---
 Documentation/admin-guide/ext4.rst | 6 ++++--
 fs/ext4/super.c                    | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
Documentation/admin-guide/ext4.rst +4 -2
index ac0c709ea9e7..7aa586c27e37 100644
@@ -172,7 +172,8 @@ When mounting an ext4 filesystem, the following option are accepted:
   data=journal
         All data are committed into the journal prior to being written into the
         main file system.  Enabling this mode will disable delayed allocation
-        and O_DIRECT support.
+        and O_DIRECT support.  This feature is deprecated and support
+	will be removed in January 2028.
 
   data=ordered	(*)
         All data are forced directly out to the main file system prior to its
@@ -420,7 +421,8 @@ There are 3 different data modes:
   consistent state.  This mode is the slowest except when data needs to be read
   from and written to disk at the same time where it outperforms all others
   modes.  Enabling this mode will disable delayed allocation and O_DIRECT
-  support.
+  support.  The data=journal feature is deprecated and support will be
+  removed in January 2028.
 
 /proc entries
 =============
fs/ext4/super.c +1 -0
index a187112cafaf..8da79cc8593f 100644
@@ -5049,6 +5049,7 @@ static int ext4_load_and_init_journal(struct super_block *sb,
 static int ext4_check_journal_data_mode(struct super_block *sb)
 {
 	if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
+		printk(KERN_WARNING "EXT4-fs: The data=journal mount option is deprecated and support will be removed in January 2028\n");
 		printk_once(KERN_WARNING "EXT4-fs: Warning: mounting with "
 			    "data=journal disables delayed allocation, "
 			    "dioread_nolock, O_DIRECT and fast_commit support!\n");