Commit a9e599e558da15e092cd55a743d57d83daaac0b2
1 parent
5d30b4274f
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
don't bother passing sb to oprofile_create_files()
it's always root->d_sb Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 3 changed files with 15 additions and 15 deletions Side-by-side Diff
drivers/oprofile/oprof.h
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | struct super_block; |
34 | 34 | struct dentry; |
35 | 35 | |
36 | -void oprofile_create_files(struct super_block *sb, struct dentry *root); | |
36 | +void oprofile_create_files(struct dentry *root); | |
37 | 37 | int oprofile_timer_init(struct oprofile_operations *ops); |
38 | 38 | #ifdef CONFIG_OPROFILE_NMI_TIMER |
39 | 39 | int op_nmi_timer_init(struct oprofile_operations *ops); |
drivers/oprofile/oprofile_files.c
... | ... | @@ -175,7 +175,7 @@ |
175 | 175 | .llseek = noop_llseek, |
176 | 176 | }; |
177 | 177 | |
178 | -void oprofile_create_files(struct super_block *sb, struct dentry *root) | |
178 | +void oprofile_create_files(struct dentry *root) | |
179 | 179 | { |
180 | 180 | /* reinitialize default values */ |
181 | 181 | oprofile_buffer_size = BUFFER_SIZE_DEFAULT; |
182 | 182 | |
183 | 183 | |
184 | 184 | |
... | ... | @@ -183,20 +183,20 @@ |
183 | 183 | oprofile_buffer_watershed = BUFFER_WATERSHED_DEFAULT; |
184 | 184 | oprofile_time_slice = msecs_to_jiffies(TIME_SLICE_DEFAULT); |
185 | 185 | |
186 | - oprofilefs_create_file(sb, root, "enable", &enable_fops); | |
187 | - oprofilefs_create_file_perm(sb, root, "dump", &dump_fops, 0666); | |
188 | - oprofilefs_create_file(sb, root, "buffer", &event_buffer_fops); | |
189 | - oprofilefs_create_ulong(sb, root, "buffer_size", &oprofile_buffer_size); | |
190 | - oprofilefs_create_ulong(sb, root, "buffer_watershed", &oprofile_buffer_watershed); | |
191 | - oprofilefs_create_ulong(sb, root, "cpu_buffer_size", &oprofile_cpu_buffer_size); | |
192 | - oprofilefs_create_file(sb, root, "cpu_type", &cpu_type_fops); | |
193 | - oprofilefs_create_file(sb, root, "backtrace_depth", &depth_fops); | |
194 | - oprofilefs_create_file(sb, root, "pointer_size", &pointer_size_fops); | |
186 | + oprofilefs_create_file(root->d_sb, root, "enable", &enable_fops); | |
187 | + oprofilefs_create_file_perm(root->d_sb, root, "dump", &dump_fops, 0666); | |
188 | + oprofilefs_create_file(root->d_sb, root, "buffer", &event_buffer_fops); | |
189 | + oprofilefs_create_ulong(root->d_sb, root, "buffer_size", &oprofile_buffer_size); | |
190 | + oprofilefs_create_ulong(root->d_sb, root, "buffer_watershed", &oprofile_buffer_watershed); | |
191 | + oprofilefs_create_ulong(root->d_sb, root, "cpu_buffer_size", &oprofile_cpu_buffer_size); | |
192 | + oprofilefs_create_file(root->d_sb, root, "cpu_type", &cpu_type_fops); | |
193 | + oprofilefs_create_file(root->d_sb, root, "backtrace_depth", &depth_fops); | |
194 | + oprofilefs_create_file(root->d_sb, root, "pointer_size", &pointer_size_fops); | |
195 | 195 | #ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX |
196 | - oprofilefs_create_file(sb, root, "time_slice", &timeout_fops); | |
196 | + oprofilefs_create_file(root->d_sb, root, "time_slice", &timeout_fops); | |
197 | 197 | #endif |
198 | - oprofile_create_stats_files(sb, root); | |
198 | + oprofile_create_stats_files(root->d_sb, root); | |
199 | 199 | if (oprofile_ops.create_files) |
200 | - oprofile_ops.create_files(sb, root); | |
200 | + oprofile_ops.create_files(root->d_sb, root); | |
201 | 201 | } |
drivers/oprofile/oprofilefs.c