Message ID | 20230118045413.3537040-1-wangjianjian3@huawei.com |
---|---|
State | Superseded |
Headers | show |
Series | ext4: Don't show commit interval if it is zero | expand |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 260c1b3e3ef2..3b9e30e1afd9 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2146,7 +2146,7 @@ static int ext4_parse_param(struct fs_context *fc, struct fs_parameter *param) return 0; case Opt_commit: if (result.uint_32 == 0) - ctx->s_commit_interval = JBD2_DEFAULT_MAX_COMMIT_AGE; + result.uint_32 = JBD2_DEFAULT_MAX_COMMIT_AGE; else if (result.uint_32 > INT_MAX / HZ) { ext4_msg(NULL, KERN_ERR, "Invalid commit interval %d, "