Skip to content

Commit 4437992

Browse files
Lukas Czernertytso
authored andcommitted
ext4: remove lazytime/nolazytime mount options handled by MS_LAZYTIME
The lazytime and nolazytime mount options were added temporarily back in 2015 with commit a26f499 ("ext4: add optimization for the lazytime mount option"). It think it has been enough time for the util-linux with lazytime support to get widely used. Remove the mount options. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Link: https://lore.kernel.org/r/20211222104517.11187-1-lczerner@redhat.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 4c24672 commit 4437992

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

fs/ext4/super.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,8 +1703,7 @@ enum {
17031703
Opt_usrquota, Opt_grpquota, Opt_prjquota, Opt_i_version,
17041704
Opt_dax, Opt_dax_always, Opt_dax_inode, Opt_dax_never,
17051705
Opt_stripe, Opt_delalloc, Opt_nodelalloc, Opt_warn_on_error,
1706-
Opt_nowarn_on_error, Opt_mblk_io_submit,
1707-
Opt_lazytime, Opt_nolazytime, Opt_debug_want_extra_isize,
1706+
Opt_nowarn_on_error, Opt_mblk_io_submit, Opt_debug_want_extra_isize,
17081707
Opt_nomblk_io_submit, Opt_block_validity, Opt_noblock_validity,
17091708
Opt_inode_readahead_blks, Opt_journal_ioprio,
17101709
Opt_dioread_nolock, Opt_dioread_lock,
@@ -1818,8 +1817,6 @@ static const struct fs_parameter_spec ext4_param_specs[] = {
18181817
fsparam_flag ("nodelalloc", Opt_nodelalloc),
18191818
fsparam_flag ("warn_on_error", Opt_warn_on_error),
18201819
fsparam_flag ("nowarn_on_error", Opt_nowarn_on_error),
1821-
fsparam_flag ("lazytime", Opt_lazytime),
1822-
fsparam_flag ("nolazytime", Opt_nolazytime),
18231820
fsparam_u32 ("debug_want_extra_isize",
18241821
Opt_debug_want_extra_isize),
18251822
fsparam_flag ("mblk_io_submit", Opt_removed),
@@ -2251,12 +2248,6 @@ static int ext4_parse_param(struct fs_context *fc, struct fs_parameter *param)
22512248
case Opt_i_version:
22522249
ctx_set_flags(ctx, SB_I_VERSION);
22532250
return 0;
2254-
case Opt_lazytime:
2255-
ctx_set_flags(ctx, SB_LAZYTIME);
2256-
return 0;
2257-
case Opt_nolazytime:
2258-
ctx_clear_flags(ctx, SB_LAZYTIME);
2259-
return 0;
22602251
case Opt_inlinecrypt:
22612252
#ifdef CONFIG_FS_ENCRYPTION_INLINE_CRYPT
22622253
ctx_set_flags(ctx, SB_INLINECRYPT);
@@ -6259,7 +6250,7 @@ static int __ext4_remount(struct fs_context *fc, struct super_block *sb,
62596250
* either way we need to make sure it matches in both *flags and
62606251
* s_flags. Copy those selected flags from *flags to s_flags
62616252
*/
6262-
vfs_flags = SB_LAZYTIME | SB_I_VERSION;
6253+
vfs_flags = SB_I_VERSION;
62636254
sb->s_flags = (sb->s_flags & ~vfs_flags) | (*flags & vfs_flags);
62646255

62656256
ext4_apply_options(fc, sb);

0 commit comments

Comments
 (0)