|
@@ -1280,6 +1280,8 @@ static int ocfs2_parse_options(struct super_block *sb,
|
|
|
int status, user_stack = 0;
|
|
|
char *p;
|
|
|
u32 tmp;
|
|
|
+ int token, option;
|
|
|
+ substring_t args[MAX_OPT_ARGS];
|
|
|
|
|
|
trace_ocfs2_parse_options(is_remount, options ? options : "(none)");
|
|
|
|
|
@@ -1298,9 +1300,6 @@ static int ocfs2_parse_options(struct super_block *sb,
|
|
|
}
|
|
|
|
|
|
while ((p = strsep(&options, ",")) != NULL) {
|
|
|
- int token, option;
|
|
|
- substring_t args[MAX_OPT_ARGS];
|
|
|
-
|
|
|
if (!*p)
|
|
|
continue;
|
|
|
|
|
@@ -1367,7 +1366,6 @@ static int ocfs2_parse_options(struct super_block *sb,
|
|
|
mopt->atime_quantum = option;
|
|
|
break;
|
|
|
case Opt_slot:
|
|
|
- option = 0;
|
|
|
if (match_int(&args[0], &option)) {
|
|
|
status = 0;
|
|
|
goto bail;
|
|
@@ -1376,7 +1374,6 @@ static int ocfs2_parse_options(struct super_block *sb,
|
|
|
mopt->slot = (s16)option;
|
|
|
break;
|
|
|
case Opt_commit:
|
|
|
- option = 0;
|
|
|
if (match_int(&args[0], &option)) {
|
|
|
status = 0;
|
|
|
goto bail;
|
|
@@ -1388,7 +1385,6 @@ static int ocfs2_parse_options(struct super_block *sb,
|
|
|
mopt->commit_interval = HZ * option;
|
|
|
break;
|
|
|
case Opt_localalloc:
|
|
|
- option = 0;
|
|
|
if (match_int(&args[0], &option)) {
|
|
|
status = 0;
|
|
|
goto bail;
|