summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-07-19 15:52:42 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-09-03 22:52:46 -0400
commitef7bca1456e7f65e66b9466c3b149601fe32eec0 (patch)
tree84cca2e208e1d482cdcdba49e69bd9a149728709 /drivers/oprofile
parenta9e599e558da15e092cd55a743d57d83daaac0b2 (diff)
downloadlinux-ef7bca1456e7f65e66b9466c3b149601fe32eec0.tar.gz
linux-ef7bca1456e7f65e66b9466c3b149601fe32eec0.tar.bz2
linux-ef7bca1456e7f65e66b9466c3b149601fe32eec0.zip
oprofile: don't bother with passing superblock to ->create_files()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/oprofile')
-rw-r--r--drivers/oprofile/oprofile_files.c2
-rw-r--r--drivers/oprofile/oprofile_perf.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/oprofile/oprofile_files.c b/drivers/oprofile/oprofile_files.c
index 97c345ff62c4..ffc30ee641d4 100644
--- a/drivers/oprofile/oprofile_files.c
+++ b/drivers/oprofile/oprofile_files.c
@@ -197,5 +197,5 @@ void oprofile_create_files(struct dentry *root)
#endif
oprofile_create_stats_files(root->d_sb, root);
if (oprofile_ops.create_files)
- oprofile_ops.create_files(root->d_sb, root);
+ oprofile_ops.create_files(root);
}
diff --git a/drivers/oprofile/oprofile_perf.c b/drivers/oprofile/oprofile_perf.c
index f3cfa0b9adfa..52ad942df04e 100644
--- a/drivers/oprofile/oprofile_perf.c
+++ b/drivers/oprofile/oprofile_perf.c
@@ -138,7 +138,7 @@ static void op_perf_stop(void)
op_destroy_counter(cpu, event);
}
-static int oprofile_perf_create_files(struct super_block *sb, struct dentry *root)
+static int oprofile_perf_create_files(struct dentry *root)
{
unsigned int i;
@@ -147,13 +147,13 @@ static int oprofile_perf_create_files(struct super_block *sb, struct dentry *roo
char buf[4];
snprintf(buf, sizeof buf, "%d", i);
- dir = oprofilefs_mkdir(sb, root, buf);
- oprofilefs_create_ulong(sb, dir, "enabled", &counter_config[i].enabled);
- oprofilefs_create_ulong(sb, dir, "event", &counter_config[i].event);
- oprofilefs_create_ulong(sb, dir, "count", &counter_config[i].count);
- oprofilefs_create_ulong(sb, dir, "unit_mask", &counter_config[i].unit_mask);
- oprofilefs_create_ulong(sb, dir, "kernel", &counter_config[i].kernel);
- oprofilefs_create_ulong(sb, dir, "user", &counter_config[i].user);
+ dir = oprofilefs_mkdir(root->d_sb, 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);
+ oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &counter_config[i].unit_mask);
+ oprofilefs_create_ulong(root->d_sb, dir, "kernel", &counter_config[i].kernel);
+ oprofilefs_create_ulong(root->d_sb, dir, "user", &counter_config[i].user);
}
return 0;