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

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2026-09-24 10:58:12 -04:00
parent 4b1d04693e
commit 3e78d7b063
2 changed files with 5 additions and 2 deletions

View File

@ -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
=============

View File

@ -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");
printk_once(KERN_WARNING "EXT4-fs: Warning: mounting with "
"data=journal disables delayed allocation, "
"dioread_nolock, O_DIRECT and fast_commit support!\n");