@@ -1359,7 +1359,7 @@ static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param)
1359
1359
break ;
1360
1360
case Opt_debug :
1361
1361
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" );
1363
1363
args -> ar_debug = result .boolean ;
1364
1364
break ;
1365
1365
case Opt_upgrade :
@@ -1389,27 +1389,27 @@ static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param)
1389
1389
break ;
1390
1390
case Opt_commit :
1391
1391
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" );
1393
1393
args -> ar_commit = result .int_32 ;
1394
1394
break ;
1395
1395
case Opt_statfs_quantum :
1396
1396
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" );
1398
1398
args -> ar_statfs_quantum = result .int_32 ;
1399
1399
break ;
1400
1400
case Opt_quota_quantum :
1401
1401
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" );
1403
1403
args -> ar_quota_quantum = result .int_32 ;
1404
1404
break ;
1405
1405
case Opt_statfs_percent :
1406
1406
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" );
1408
1408
args -> ar_statfs_percent = result .int_32 ;
1409
1409
break ;
1410
1410
case Opt_errors :
1411
1411
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" );
1413
1413
args -> ar_errors = result .uint_32 ;
1414
1414
break ;
1415
1415
case Opt_barrier :
@@ -1422,7 +1422,7 @@ static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param)
1422
1422
args -> ar_loccookie = result .boolean ;
1423
1423
break ;
1424
1424
default :
1425
- return invalf (fc , "gfs2: invalid mount option: %s" , param -> key );
1425
+ return invalfc (fc , "invalid mount option: %s" , param -> key );
1426
1426
}
1427
1427
return 0 ;
1428
1428
}
@@ -1448,27 +1448,27 @@ static int gfs2_reconfigure(struct fs_context *fc)
1448
1448
spin_unlock (& gt -> gt_spin );
1449
1449
1450
1450
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" );
1452
1452
return - EINVAL ;
1453
1453
}
1454
1454
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" );
1456
1456
return - EINVAL ;
1457
1457
}
1458
1458
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" );
1460
1460
return - EINVAL ;
1461
1461
}
1462
1462
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" );
1464
1464
return - EINVAL ;
1465
1465
}
1466
1466
if (newargs -> ar_localflocks != oldargs -> ar_localflocks ) {
1467
- errorf (fc , "gfs2: reconfiguration of localflocks not allowed" );
1467
+ errorfc (fc , "reconfiguration of localflocks not allowed" );
1468
1468
return - EINVAL ;
1469
1469
}
1470
1470
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" );
1472
1472
return - EINVAL ;
1473
1473
}
1474
1474
if (oldargs -> ar_spectator )
@@ -1478,11 +1478,11 @@ static int gfs2_reconfigure(struct fs_context *fc)
1478
1478
if (fc -> sb_flags & SB_RDONLY ) {
1479
1479
error = gfs2_make_fs_ro (sdp );
1480
1480
if (error )
1481
- errorf (fc , "gfs2: unable to remount read-only" );
1481
+ errorfc (fc , "unable to remount read-only" );
1482
1482
} else {
1483
1483
error = gfs2_make_fs_rw (sdp );
1484
1484
if (error )
1485
- errorf (fc , "gfs2: unable to remount read-write" );
1485
+ errorfc (fc , "unable to remount read-write" );
1486
1486
}
1487
1487
}
1488
1488
sdp -> sd_args = * newargs ;
0 commit comments