Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ceec0376 authored by Tyson Nottingham's avatar Tyson Nottingham Committed by Theodore Ts'o
Browse files

ext4: omit init_itable=n in procfs when disabled



Don't show init_itable=n in /proc/fs/ext4/<dev>/options when filesystem
is mounted with noinit_itable.

Signed-off-by: default avatarTyson Nottingham <tgnottingham@gmail.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 68afa7e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2084,7 +2084,7 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb,
		SEQ_OPTS_PRINT("inode_readahead_blks=%u",
			       sbi->s_inode_readahead_blks);

	if (nodefs || (test_opt(sb, INIT_INODE_TABLE) &&
	if (test_opt(sb, INIT_INODE_TABLE) && (nodefs ||
		       (sbi->s_li_wait_mult != EXT4_DEF_LI_WAIT_MULT)))
		SEQ_OPTS_PRINT("init_itable=%u", sbi->s_li_wait_mult);
	if (nodefs || sbi->s_max_dir_size_kb)