diff options
| author | Baokun Li <[email protected]> | 2024-10-08 12:01:34 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2024-11-13 04:49:51 +0000 |
| commit | fdfa648ab9393de8c1be21cad17c17bdced3a68a (patch) | |
| tree | 2f30fd3cc9c05495628a619d7215dc217a514e5e | |
| parent | ext4: avoid remount errors with 'abort' mount option (diff) | |
| download | kernel-fdfa648ab9393de8c1be21cad17c17bdced3a68a.tar.gz kernel-fdfa648ab9393de8c1be21cad17c17bdced3a68a.zip | |
ext4: show the default enabled prefetch_block_bitmaps option
After commit 21175ca434c5 ("ext4: make prefetch_block_bitmaps default"),
we enable 'prefetch_block_bitmaps' by default, but this is not shown in
the '/proc/fs/ext4/sdx/options' procfs interface.
This makes it impossible to distinguish whether the feature is enabled by
default or not, so 'prefetch_block_bitmaps' is shown in the 'options'
procfs interface when prefetch_block_bitmaps is enabled by default.
This makes it easy to notice changes to the default mount options between
versions through the '/proc/fs/ext4/sdx/options' procfs interface.
Signed-off-by: Baokun Li <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
| -rw-r--r-- | fs/ext4/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 8a0af97e5d90..e7d3c2e209ba 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3030,6 +3030,9 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb, SEQ_OPTS_PUTS("mb_optimize_scan=1"); } + if (nodefs && !test_opt(sb, NO_PREFETCH_BLOCK_BITMAPS)) + SEQ_OPTS_PUTS("prefetch_block_bitmaps"); + ext4_show_quota_options(seq, sb); return 0; } |
