aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2026-09-24 10:58:12 -0400
committerTheodore Ts'o <tytso@mit.edu>2026-10-08 11:21:30 -0400
commit3e78d7b063230d39ffc42e80ee665b6c32a6adeb (patch)
treed39b5cad1df500d5fe99c6eba2e87534d3f10324
parent4b1d04693e5ef388d8c6110bc93ee0d0681f9711 (diff)
ext4: mark data=journal as deprecated and will be removed in January 2028.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--Documentation/admin-guide/ext4.rst6
-rw-r--r--fs/ext4/super.c1
2 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/admin-guide/ext4.rst b/Documentation/admin-guide/ext4.rst
index 742a48e6fc0c..8b23b6ff3df1 100644
--- a/Documentation/admin-guide/ext4.rst
+++ b/Documentation/admin-guide/ext4.rst
@@ -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
@@ -418,7 +419,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
=============
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index bca0dc87d0b7..d636b89090a2 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -5057,6 +5057,7 @@ out:
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");