Skip to content

Commit 934b0de

Browse files
Wang Jianjiantytso
authored andcommitted
ext4: don't show commit interval if it is zero
If commit interval is 0, it means using default value. Fixes: 6e47a3c ("ext4: get rid of super block and sbi from handle_mount_ops()") Signed-off-by: Wang Jianjian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 11768cf commit 934b0de

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
@@ -2146,7 +2146,7 @@ static int ext4_parse_param(struct fs_context *fc, struct fs_parameter *param)
21462146
return 0;
21472147
case Opt_commit:
21482148
if (result.uint_32 == 0)
2149-
ctx->s_commit_interval = JBD2_DEFAULT_MAX_COMMIT_AGE;
2149+
result.uint_32 = JBD2_DEFAULT_MAX_COMMIT_AGE;
21502150
else if (result.uint_32 > INT_MAX / HZ) {
21512151
ext4_msg(NULL, KERN_ERR,
21522152
"Invalid commit interval %d, "

0 commit comments

Comments
 (0)