diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-19 07:52:42 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-03 22:52:46 -0400 |
commit | ef7bca1456e7f65e66b9466c3b149601fe32eec0 (patch) | |
tree | 84cca2e208e1d482cdcdba49e69bd9a149728709 /drivers/oprofile | |
parent | a9e599e558da15e092cd55a743d57d83daaac0b2 (diff) |
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.c | 2 | ||||
-rw-r--r-- | drivers/oprofile/oprofile_perf.c | 16 |
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) | |||
197 | #endif | 197 | #endif |
198 | oprofile_create_stats_files(root->d_sb, root); | 198 | oprofile_create_stats_files(root->d_sb, root); |
199 | if (oprofile_ops.create_files) | 199 | if (oprofile_ops.create_files) |
200 | oprofile_ops.create_files(root->d_sb, root); | 200 | oprofile_ops.create_files(root); |
201 | } | 201 | } |
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) | |||
138 | op_destroy_counter(cpu, event); | 138 | op_destroy_counter(cpu, event); |
139 | } | 139 | } |
140 | 140 | ||
141 | static int oprofile_perf_create_files(struct super_block *sb, struct dentry *root) | 141 | static int oprofile_perf_create_files(struct dentry *root) |
142 | { | 142 | { |
143 | unsigned int i; | 143 | unsigned int i; |
144 | 144 | ||
@@ -147,13 +147,13 @@ static int oprofile_perf_create_files(struct super_block *sb, struct dentry *roo | |||
147 | char buf[4]; | 147 | char buf[4]; |
148 | 148 | ||
149 | snprintf(buf, sizeof buf, "%d", i); | 149 | snprintf(buf, sizeof buf, "%d", i); |
150 | dir = oprofilefs_mkdir(sb, root, buf); | 150 | dir = oprofilefs_mkdir(root->d_sb, root, buf); |
151 | oprofilefs_create_ulong(sb, dir, "enabled", &counter_config[i].enabled); | 151 | oprofilefs_create_ulong(root->d_sb, dir, "enabled", &counter_config[i].enabled); |
152 | oprofilefs_create_ulong(sb, dir, "event", &counter_config[i].event); | 152 | oprofilefs_create_ulong(root->d_sb, dir, "event", &counter_config[i].event); |
153 | oprofilefs_create_ulong(sb, dir, "count", &counter_config[i].count); | 153 | oprofilefs_create_ulong(root->d_sb, dir, "count", &counter_config[i].count); |
154 | oprofilefs_create_ulong(sb, dir, "unit_mask", &counter_config[i].unit_mask); | 154 | oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &counter_config[i].unit_mask); |
155 | oprofilefs_create_ulong(sb, dir, "kernel", &counter_config[i].kernel); | 155 | oprofilefs_create_ulong(root->d_sb, dir, "kernel", &counter_config[i].kernel); |
156 | oprofilefs_create_ulong(sb, dir, "user", &counter_config[i].user); | 156 | oprofilefs_create_ulong(root->d_sb, dir, "user", &counter_config[i].user); |
157 | } | 157 | } |
158 | 158 | ||
159 | return 0; | 159 | return 0; |