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 /arch/s390/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 'arch/s390/oprofile')
-rw-r--r-- | arch/s390/oprofile/init.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/arch/s390/oprofile/init.c b/arch/s390/oprofile/init.c index 930783d2c99b..712d57bb783a 100644 --- a/arch/s390/oprofile/init.c +++ b/arch/s390/oprofile/init.c | |||
@@ -346,16 +346,15 @@ static const struct file_operations timer_enabled_fops = { | |||
346 | }; | 346 | }; |
347 | 347 | ||
348 | 348 | ||
349 | static int oprofile_create_hwsampling_files(struct super_block *sb, | 349 | static int oprofile_create_hwsampling_files(struct dentry *root) |
350 | struct dentry *root) | ||
351 | { | 350 | { |
352 | struct dentry *dir; | 351 | struct dentry *dir; |
353 | 352 | ||
354 | dir = oprofilefs_mkdir(sb, root, "timer"); | 353 | dir = oprofilefs_mkdir(root->d_sb, root, "timer"); |
355 | if (!dir) | 354 | if (!dir) |
356 | return -EINVAL; | 355 | return -EINVAL; |
357 | 356 | ||
358 | oprofilefs_create_file(sb, dir, "enabled", &timer_enabled_fops); | 357 | oprofilefs_create_file(root->d_sb, dir, "enabled", &timer_enabled_fops); |
359 | 358 | ||
360 | if (!hwsampler_available) | 359 | if (!hwsampler_available) |
361 | return 0; | 360 | return 0; |
@@ -376,17 +375,17 @@ static int oprofile_create_hwsampling_files(struct super_block *sb, | |||
376 | * and can only be set to 0. | 375 | * and can only be set to 0. |
377 | */ | 376 | */ |
378 | 377 | ||
379 | dir = oprofilefs_mkdir(sb, root, "0"); | 378 | dir = oprofilefs_mkdir(root->d_sb, root, "0"); |
380 | if (!dir) | 379 | if (!dir) |
381 | return -EINVAL; | 380 | return -EINVAL; |
382 | 381 | ||
383 | oprofilefs_create_file(sb, dir, "enabled", &hwsampler_fops); | 382 | oprofilefs_create_file(root->d_sb, dir, "enabled", &hwsampler_fops); |
384 | oprofilefs_create_file(sb, dir, "event", &zero_fops); | 383 | oprofilefs_create_file(root->d_sb, dir, "event", &zero_fops); |
385 | oprofilefs_create_file(sb, dir, "count", &hw_interval_fops); | 384 | oprofilefs_create_file(root->d_sb, dir, "count", &hw_interval_fops); |
386 | oprofilefs_create_file(sb, dir, "unit_mask", &zero_fops); | 385 | oprofilefs_create_file(root->d_sb, dir, "unit_mask", &zero_fops); |
387 | oprofilefs_create_file(sb, dir, "kernel", &kernel_fops); | 386 | oprofilefs_create_file(root->d_sb, dir, "kernel", &kernel_fops); |
388 | oprofilefs_create_file(sb, dir, "user", &user_fops); | 387 | oprofilefs_create_file(root->d_sb, dir, "user", &user_fops); |
389 | oprofilefs_create_ulong(sb, dir, "hw_sdbt_blocks", | 388 | oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks", |
390 | &oprofile_sdbt_blocks); | 389 | &oprofile_sdbt_blocks); |
391 | 390 | ||
392 | } else { | 391 | } else { |
@@ -396,19 +395,19 @@ static int oprofile_create_hwsampling_files(struct super_block *sb, | |||
396 | * space tools. The /dev/oprofile/hwsampling fs is | 395 | * space tools. The /dev/oprofile/hwsampling fs is |
397 | * provided in that case. | 396 | * provided in that case. |
398 | */ | 397 | */ |
399 | dir = oprofilefs_mkdir(sb, root, "hwsampling"); | 398 | dir = oprofilefs_mkdir(root->d_sb, root, "hwsampling"); |
400 | if (!dir) | 399 | if (!dir) |
401 | return -EINVAL; | 400 | return -EINVAL; |
402 | 401 | ||
403 | oprofilefs_create_file(sb, dir, "hwsampler", | 402 | oprofilefs_create_file(root->d_sb, dir, "hwsampler", |
404 | &hwsampler_fops); | 403 | &hwsampler_fops); |
405 | oprofilefs_create_file(sb, dir, "hw_interval", | 404 | oprofilefs_create_file(root->d_sb, dir, "hw_interval", |
406 | &hw_interval_fops); | 405 | &hw_interval_fops); |
407 | oprofilefs_create_ro_ulong(sb, dir, "hw_min_interval", | 406 | oprofilefs_create_ro_ulong(root->d_sb, dir, "hw_min_interval", |
408 | &oprofile_min_interval); | 407 | &oprofile_min_interval); |
409 | oprofilefs_create_ro_ulong(sb, dir, "hw_max_interval", | 408 | oprofilefs_create_ro_ulong(root->d_sb, dir, "hw_max_interval", |
410 | &oprofile_max_interval); | 409 | &oprofile_max_interval); |
411 | oprofilefs_create_ulong(sb, dir, "hw_sdbt_blocks", | 410 | oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks", |
412 | &oprofile_sdbt_blocks); | 411 | &oprofile_sdbt_blocks); |
413 | } | 412 | } |
414 | return 0; | 413 | return 0; |