oprofilefs_mkdir() doesn't need superblock argument
it's always equal to ->d_sb of the second argument (parent dentry), due to either being literally that, or ->d_sb of parent's parent. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -420,7 +420,7 @@ static int nmi_create_files(struct dentry *root)
|
||||
continue;
|
||||
|
||||
snprintf(buf, sizeof(buf), "%d", i);
|
||||
dir = oprofilefs_mkdir(root->d_sb, root, buf);
|
||||
dir = oprofilefs_mkdir(root, buf);
|
||||
oprofilefs_create_ulong(root->d_sb, dir, "enabled", &counter_config[i].enabled);
|
||||
oprofilefs_create_ulong(root->d_sb, dir, "event", &counter_config[i].event);
|
||||
oprofilefs_create_ulong(root->d_sb, dir, "count", &counter_config[i].count);
|
||||
|
@@ -479,7 +479,7 @@ static int setup_ibs_files(struct dentry *root)
|
||||
ibs_config.max_cnt_op = 250000;
|
||||
|
||||
if (ibs_caps & IBS_CAPS_FETCHSAM) {
|
||||
dir = oprofilefs_mkdir(root->d_sb, root, "ibs_fetch");
|
||||
dir = oprofilefs_mkdir(root, "ibs_fetch");
|
||||
oprofilefs_create_ulong(root->d_sb, dir, "enable",
|
||||
&ibs_config.fetch_enabled);
|
||||
oprofilefs_create_ulong(root->d_sb, dir, "max_count",
|
||||
@@ -489,7 +489,7 @@ static int setup_ibs_files(struct dentry *root)
|
||||
}
|
||||
|
||||
if (ibs_caps & IBS_CAPS_OPSAM) {
|
||||
dir = oprofilefs_mkdir(root->d_sb, root, "ibs_op");
|
||||
dir = oprofilefs_mkdir(root, "ibs_op");
|
||||
oprofilefs_create_ulong(root->d_sb, dir, "enable",
|
||||
&ibs_config.op_enabled);
|
||||
oprofilefs_create_ulong(root->d_sb, dir, "max_count",
|
||||
|
Reference in New Issue
Block a user