OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fs_parse: fold fs_parameter_desc/fs_parameter_spec
[tomoyo/tomoyo-test1.git]
/
arch
/
x86
/
kernel
/
cpu
/
resctrl
/
rdtgroup.c
diff --git
a/arch/x86/kernel/cpu/resctrl/rdtgroup.c
b/arch/x86/kernel/cpu/resctrl/rdtgroup.c
index
2e3b06d
..
9891b46
100644
(file)
--- a/
arch/x86/kernel/cpu/resctrl/rdtgroup.c
+++ b/
arch/x86/kernel/cpu/resctrl/rdtgroup.c
@@
-2037,25
+2037,20
@@
enum rdt_param {
nr__rdt_params
};
nr__rdt_params
};
-static const struct fs_parameter_spec rdt_
param_spec
s[] = {
+static const struct fs_parameter_spec rdt_
fs_parameter
s[] = {
fsparam_flag("cdp", Opt_cdp),
fsparam_flag("cdpl2", Opt_cdpl2),
fsparam_flag("mba_MBps", Opt_mba_mbps),
{}
};
fsparam_flag("cdp", Opt_cdp),
fsparam_flag("cdpl2", Opt_cdpl2),
fsparam_flag("mba_MBps", Opt_mba_mbps),
{}
};
-static const struct fs_parameter_description rdt_fs_parameters = {
- .name = "rdt",
- .specs = rdt_param_specs,
-};
-
static int rdt_parse_param(struct fs_context *fc, struct fs_parameter *param)
{
struct rdt_fs_context *ctx = rdt_fc2context(fc);
struct fs_parse_result result;
int opt;
static int rdt_parse_param(struct fs_context *fc, struct fs_parameter *param)
{
struct rdt_fs_context *ctx = rdt_fc2context(fc);
struct fs_parse_result result;
int opt;
- opt = fs_parse(fc,
&
rdt_fs_parameters, param, &result);
+ opt = fs_parse(fc, rdt_fs_parameters, param, &result);
if (opt < 0)
return opt;
if (opt < 0)
return opt;
@@
-2280,7
+2275,7
@@
static void rdt_kill_sb(struct super_block *sb)
static struct file_system_type rdt_fs_type = {
.name = "resctrl",
.init_fs_context = rdt_init_fs_context,
static struct file_system_type rdt_fs_type = {
.name = "resctrl",
.init_fs_context = rdt_init_fs_context,
- .parameters =
&
rdt_fs_parameters,
+ .parameters = rdt_fs_parameters,
.kill_sb = rdt_kill_sb,
};
.kill_sb = rdt_kill_sb,
};