Skip to content

Commit 77cb271

Browse files
author
Al Viro
committed
gfs2: switch to use of errorfc() et.al.
Signed-off-by: Al Viro <[email protected]>
1 parent 2e28c49 commit 77cb271

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

fs/gfs2/ops_fstype.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param)
13591359
break;
13601360
case Opt_debug:
13611361
if (result.boolean && args->ar_errors == GFS2_ERRORS_PANIC)
1362-
return invalf(fc, "gfs2: -o debug and -o errors=panic are mutually exclusive");
1362+
return invalfc(fc, "-o debug and -o errors=panic are mutually exclusive");
13631363
args->ar_debug = result.boolean;
13641364
break;
13651365
case Opt_upgrade:
@@ -1389,27 +1389,27 @@ static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param)
13891389
break;
13901390
case Opt_commit:
13911391
if (result.int_32 <= 0)
1392-
return invalf(fc, "gfs2: commit mount option requires a positive numeric argument");
1392+
return invalfc(fc, "commit mount option requires a positive numeric argument");
13931393
args->ar_commit = result.int_32;
13941394
break;
13951395
case Opt_statfs_quantum:
13961396
if (result.int_32 < 0)
1397-
return invalf(fc, "gfs2: statfs_quantum mount option requires a non-negative numeric argument");
1397+
return invalfc(fc, "statfs_quantum mount option requires a non-negative numeric argument");
13981398
args->ar_statfs_quantum = result.int_32;
13991399
break;
14001400
case Opt_quota_quantum:
14011401
if (result.int_32 <= 0)
1402-
return invalf(fc, "gfs2: quota_quantum mount option requires a positive numeric argument");
1402+
return invalfc(fc, "quota_quantum mount option requires a positive numeric argument");
14031403
args->ar_quota_quantum = result.int_32;
14041404
break;
14051405
case Opt_statfs_percent:
14061406
if (result.int_32 < 0 || result.int_32 > 100)
1407-
return invalf(fc, "gfs2: statfs_percent mount option requires a numeric argument between 0 and 100");
1407+
return invalfc(fc, "statfs_percent mount option requires a numeric argument between 0 and 100");
14081408
args->ar_statfs_percent = result.int_32;
14091409
break;
14101410
case Opt_errors:
14111411
if (args->ar_debug && result.uint_32 == GFS2_ERRORS_PANIC)
1412-
return invalf(fc, "gfs2: -o debug and -o errors=panic are mutually exclusive");
1412+
return invalfc(fc, "-o debug and -o errors=panic are mutually exclusive");
14131413
args->ar_errors = result.uint_32;
14141414
break;
14151415
case Opt_barrier:
@@ -1422,7 +1422,7 @@ static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param)
14221422
args->ar_loccookie = result.boolean;
14231423
break;
14241424
default:
1425-
return invalf(fc, "gfs2: invalid mount option: %s", param->key);
1425+
return invalfc(fc, "invalid mount option: %s", param->key);
14261426
}
14271427
return 0;
14281428
}
@@ -1448,27 +1448,27 @@ static int gfs2_reconfigure(struct fs_context *fc)
14481448
spin_unlock(&gt->gt_spin);
14491449

14501450
if (strcmp(newargs->ar_lockproto, oldargs->ar_lockproto)) {
1451-
errorf(fc, "gfs2: reconfiguration of locking protocol not allowed");
1451+
errorfc(fc, "reconfiguration of locking protocol not allowed");
14521452
return -EINVAL;
14531453
}
14541454
if (strcmp(newargs->ar_locktable, oldargs->ar_locktable)) {
1455-
errorf(fc, "gfs2: reconfiguration of lock table not allowed");
1455+
errorfc(fc, "reconfiguration of lock table not allowed");
14561456
return -EINVAL;
14571457
}
14581458
if (strcmp(newargs->ar_hostdata, oldargs->ar_hostdata)) {
1459-
errorf(fc, "gfs2: reconfiguration of host data not allowed");
1459+
errorfc(fc, "reconfiguration of host data not allowed");
14601460
return -EINVAL;
14611461
}
14621462
if (newargs->ar_spectator != oldargs->ar_spectator) {
1463-
errorf(fc, "gfs2: reconfiguration of spectator mode not allowed");
1463+
errorfc(fc, "reconfiguration of spectator mode not allowed");
14641464
return -EINVAL;
14651465
}
14661466
if (newargs->ar_localflocks != oldargs->ar_localflocks) {
1467-
errorf(fc, "gfs2: reconfiguration of localflocks not allowed");
1467+
errorfc(fc, "reconfiguration of localflocks not allowed");
14681468
return -EINVAL;
14691469
}
14701470
if (newargs->ar_meta != oldargs->ar_meta) {
1471-
errorf(fc, "gfs2: switching between gfs2 and gfs2meta not allowed");
1471+
errorfc(fc, "switching between gfs2 and gfs2meta not allowed");
14721472
return -EINVAL;
14731473
}
14741474
if (oldargs->ar_spectator)
@@ -1478,11 +1478,11 @@ static int gfs2_reconfigure(struct fs_context *fc)
14781478
if (fc->sb_flags & SB_RDONLY) {
14791479
error = gfs2_make_fs_ro(sdp);
14801480
if (error)
1481-
errorf(fc, "gfs2: unable to remount read-only");
1481+
errorfc(fc, "unable to remount read-only");
14821482
} else {
14831483
error = gfs2_make_fs_rw(sdp);
14841484
if (error)
1485-
errorf(fc, "gfs2: unable to remount read-write");
1485+
errorfc(fc, "unable to remount read-write");
14861486
}
14871487
}
14881488
sdp->sd_args = *newargs;

0 commit comments

Comments
 (0)