summaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 3db5f17228b7..dd654e53ba3d 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1878,6 +1878,13 @@ static int handle_mount_opt(struct super_block *sb, char *opt, int token,
1878 } else if (token == Opt_commit) { 1878 } else if (token == Opt_commit) {
1879 if (arg == 0) 1879 if (arg == 0)
1880 arg = JBD2_DEFAULT_MAX_COMMIT_AGE; 1880 arg = JBD2_DEFAULT_MAX_COMMIT_AGE;
1881 else if (arg > INT_MAX / HZ) {
1882 ext4_msg(sb, KERN_ERR,
1883 "Invalid commit interval %d, "
1884 "must be smaller than %d",
1885 arg, INT_MAX / HZ);
1886 return -1;
1887 }
1881 sbi->s_commit_interval = HZ * arg; 1888 sbi->s_commit_interval = HZ * arg;
1882 } else if (token == Opt_debug_want_extra_isize) { 1889 } else if (token == Opt_debug_want_extra_isize) {
1883 sbi->s_want_extra_isize = arg; 1890 sbi->s_want_extra_isize = arg;