diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-19 08:10:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-03 22:52:48 -0400 |
commit | 6af4ea0ba708172be8caf1ba5047b2b8a9d2fea3 (patch) | |
tree | b52fe5f7e6a811184f2379bc6bab3d4b6d2e6520 /arch/s390/oprofile | |
parent | ecde28237e10de3750a97579f42bc2ec65b8a0e1 (diff) |
oprofilefs_create_...() do not need superblock argument
same story as with oprofilefs_mkdir()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/s390/oprofile')
-rw-r--r-- | arch/s390/oprofile/init.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/s390/oprofile/init.c b/arch/s390/oprofile/init.c index 5ae06db7ec58..04e1b6a85362 100644 --- a/arch/s390/oprofile/init.c +++ b/arch/s390/oprofile/init.c | |||
@@ -354,7 +354,7 @@ static int oprofile_create_hwsampling_files(struct dentry *root) | |||
354 | if (!dir) | 354 | if (!dir) |
355 | return -EINVAL; | 355 | return -EINVAL; |
356 | 356 | ||
357 | oprofilefs_create_file(root->d_sb, dir, "enabled", &timer_enabled_fops); | 357 | oprofilefs_create_file(dir, "enabled", &timer_enabled_fops); |
358 | 358 | ||
359 | if (!hwsampler_available) | 359 | if (!hwsampler_available) |
360 | return 0; | 360 | return 0; |
@@ -379,13 +379,13 @@ static int oprofile_create_hwsampling_files(struct dentry *root) | |||
379 | if (!dir) | 379 | if (!dir) |
380 | return -EINVAL; | 380 | return -EINVAL; |
381 | 381 | ||
382 | oprofilefs_create_file(root->d_sb, dir, "enabled", &hwsampler_fops); | 382 | oprofilefs_create_file(dir, "enabled", &hwsampler_fops); |
383 | oprofilefs_create_file(root->d_sb, dir, "event", &zero_fops); | 383 | oprofilefs_create_file(dir, "event", &zero_fops); |
384 | oprofilefs_create_file(root->d_sb, dir, "count", &hw_interval_fops); | 384 | oprofilefs_create_file(dir, "count", &hw_interval_fops); |
385 | oprofilefs_create_file(root->d_sb, dir, "unit_mask", &zero_fops); | 385 | oprofilefs_create_file(dir, "unit_mask", &zero_fops); |
386 | oprofilefs_create_file(root->d_sb, dir, "kernel", &kernel_fops); | 386 | oprofilefs_create_file(dir, "kernel", &kernel_fops); |
387 | oprofilefs_create_file(root->d_sb, dir, "user", &user_fops); | 387 | oprofilefs_create_file(dir, "user", &user_fops); |
388 | oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks", | 388 | oprofilefs_create_ulong(dir, "hw_sdbt_blocks", |
389 | &oprofile_sdbt_blocks); | 389 | &oprofile_sdbt_blocks); |
390 | 390 | ||
391 | } else { | 391 | } else { |
@@ -399,15 +399,15 @@ static int oprofile_create_hwsampling_files(struct dentry *root) | |||
399 | if (!dir) | 399 | if (!dir) |
400 | return -EINVAL; | 400 | return -EINVAL; |
401 | 401 | ||
402 | oprofilefs_create_file(root->d_sb, dir, "hwsampler", | 402 | oprofilefs_create_file(dir, "hwsampler", |
403 | &hwsampler_fops); | 403 | &hwsampler_fops); |
404 | oprofilefs_create_file(root->d_sb, dir, "hw_interval", | 404 | oprofilefs_create_file(dir, "hw_interval", |
405 | &hw_interval_fops); | 405 | &hw_interval_fops); |
406 | oprofilefs_create_ro_ulong(root->d_sb, dir, "hw_min_interval", | 406 | oprofilefs_create_ro_ulong(dir, "hw_min_interval", |
407 | &oprofile_min_interval); | 407 | &oprofile_min_interval); |
408 | oprofilefs_create_ro_ulong(root->d_sb, dir, "hw_max_interval", | 408 | oprofilefs_create_ro_ulong(dir, "hw_max_interval", |
409 | &oprofile_max_interval); | 409 | &oprofile_max_interval); |
410 | oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks", | 410 | oprofilefs_create_ulong(dir, "hw_sdbt_blocks", |
411 | &oprofile_sdbt_blocks); | 411 | &oprofile_sdbt_blocks); |
412 | } | 412 | } |
413 | return 0; | 413 | return 0; |