mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
exfat: add missing time_offset mount option for kernel version that is lower than 5.4 version
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
parent
16897b770c
commit
acb6ab8052
1 changed files with 12 additions and 0 deletions
12
super.c
12
super.c
|
|
@ -362,6 +362,7 @@ enum {
|
|||
Opt_err_ro,
|
||||
Opt_err,
|
||||
Opt_discard,
|
||||
Opt_time_offset,
|
||||
Opt_fs,
|
||||
};
|
||||
|
||||
|
|
@ -452,6 +453,17 @@ static int parse_options(struct super_block *sb, char *options, int silent,
|
|||
case Opt_discard:
|
||||
opts->discard = 1;
|
||||
break;
|
||||
case Opt_time_offset:
|
||||
if (match_int(&args[0], &option))
|
||||
return -EINVAL;
|
||||
/*
|
||||
* Make the limit 24 just in case someone
|
||||
* invents something unusual.
|
||||
*/
|
||||
if (option < -24 * 60 || option > 24 * 60)
|
||||
return -EINVAL;
|
||||
opts->time_offset = option;
|
||||
break;
|
||||
default:
|
||||
if (!silent) {
|
||||
exfat_msg(sb, KERN_ERR,
|
||||
|
|
|
|||
Loading…
Reference in a new issue