@@ -917,7 +917,7 @@ int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param)
917
917
ctx -> subsys_mask |= (1 << i );
918
918
return 0 ;
919
919
}
920
- return invalf (fc , "cgroup1: Unknown subsys name '%s'" , param -> key );
920
+ return invalfc (fc , "Unknown subsys name '%s'" , param -> key );
921
921
}
922
922
if (opt < 0 )
923
923
return opt ;
@@ -945,7 +945,7 @@ int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param)
945
945
case Opt_release_agent :
946
946
/* Specifying two release agents is forbidden */
947
947
if (ctx -> release_agent )
948
- return invalf (fc , "cgroup1: release_agent respecified" );
948
+ return invalfc (fc , "release_agent respecified" );
949
949
ctx -> release_agent = param -> string ;
950
950
param -> string = NULL ;
951
951
break ;
@@ -955,21 +955,21 @@ int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param)
955
955
return - ENOENT ;
956
956
/* Can't specify an empty name */
957
957
if (!param -> size )
958
- return invalf (fc , "cgroup1: Empty name" );
958
+ return invalfc (fc , "Empty name" );
959
959
if (param -> size > MAX_CGROUP_ROOT_NAMELEN - 1 )
960
- return invalf (fc , "cgroup1: Name too long" );
960
+ return invalfc (fc , "Name too long" );
961
961
/* Must match [\w.-]+ */
962
962
for (i = 0 ; i < param -> size ; i ++ ) {
963
963
char c = param -> string [i ];
964
964
if (isalnum (c ))
965
965
continue ;
966
966
if ((c == '.' ) || (c == '-' ) || (c == '_' ))
967
967
continue ;
968
- return invalf (fc , "cgroup1: Invalid name" );
968
+ return invalfc (fc , "Invalid name" );
969
969
}
970
970
/* Specifying two names is forbidden */
971
971
if (ctx -> name )
972
- return invalf (fc , "cgroup1: name respecified" );
972
+ return invalfc (fc , "name respecified" );
973
973
ctx -> name = param -> string ;
974
974
param -> string = NULL ;
975
975
break ;
@@ -1004,7 +1004,7 @@ static int check_cgroupfs_options(struct fs_context *fc)
1004
1004
if (ctx -> all_ss ) {
1005
1005
/* Mutually exclusive option 'all' + subsystem name */
1006
1006
if (ctx -> subsys_mask )
1007
- return invalf (fc , "cgroup1: subsys name conflicts with all" );
1007
+ return invalfc (fc , "subsys name conflicts with all" );
1008
1008
/* 'all' => select all the subsystems */
1009
1009
ctx -> subsys_mask = enabled ;
1010
1010
}
@@ -1014,19 +1014,19 @@ static int check_cgroupfs_options(struct fs_context *fc)
1014
1014
* empty hierarchies must have a name).
1015
1015
*/
1016
1016
if (!ctx -> subsys_mask && !ctx -> name )
1017
- return invalf (fc , "cgroup1: Need name or subsystem set" );
1017
+ return invalfc (fc , "Need name or subsystem set" );
1018
1018
1019
1019
/*
1020
1020
* Option noprefix was introduced just for backward compatibility
1021
1021
* with the old cpuset, so we allow noprefix only if mounting just
1022
1022
* the cpuset subsystem.
1023
1023
*/
1024
1024
if ((ctx -> flags & CGRP_ROOT_NOPREFIX ) && (ctx -> subsys_mask & mask ))
1025
- return invalf (fc , "cgroup1: noprefix used incorrectly" );
1025
+ return invalfc (fc , "noprefix used incorrectly" );
1026
1026
1027
1027
/* Can't specify "none" and some subsystems */
1028
1028
if (ctx -> subsys_mask && ctx -> none )
1029
- return invalf (fc , "cgroup1: none used incorrectly" );
1029
+ return invalfc (fc , "none used incorrectly" );
1030
1030
1031
1031
return 0 ;
1032
1032
}
@@ -1056,7 +1056,7 @@ int cgroup1_reconfigure(struct fs_context *fc)
1056
1056
/* Don't allow flags or name to change at remount */
1057
1057
if ((ctx -> flags ^ root -> flags ) ||
1058
1058
(ctx -> name && strcmp (ctx -> name , root -> name ))) {
1059
- errorf (fc , "option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"" ,
1059
+ errorfc (fc , "option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"" ,
1060
1060
ctx -> flags , ctx -> name ?: "" , root -> flags , root -> name );
1061
1061
ret = - EINVAL ;
1062
1062
goto out_unlock ;
@@ -1173,7 +1173,7 @@ static int cgroup1_root_to_use(struct fs_context *fc)
1173
1173
* can't create new one without subsys specification.
1174
1174
*/
1175
1175
if (!ctx -> subsys_mask && !ctx -> none )
1176
- return invalf (fc , "cgroup1: No subsys list or none specified" );
1176
+ return invalfc (fc , "No subsys list or none specified" );
1177
1177
1178
1178
/* Hierarchies may only be created in the initial cgroup namespace. */
1179
1179
if (ctx -> ns != & init_cgroup_ns )
0 commit comments