Skip to content

Commit ceec037

Browse files
tgnottinghamtytso
authored andcommitted
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: Tyson Nottingham <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 68afa7e commit ceec037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb,
20842084
SEQ_OPTS_PRINT("inode_readahead_blks=%u",
20852085
sbi->s_inode_readahead_blks);
20862086

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

0 commit comments

Comments
 (0)