oprofilefs_create_...() do not need superblock argument
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 19 Jul 2013 12:10:36 +0000 (16:10 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Sep 2013 02:52:48 +0000 (22:52 -0400)
same story as with oprofilefs_mkdir()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 files changed:
arch/alpha/oprofile/common.c
arch/avr32/oprofile/op_model_avr32.c
arch/mips/oprofile/common.c
arch/powerpc/oprofile/common.c
arch/s390/oprofile/init.c
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/op_model_amd.c
drivers/oprofile/oprofile_files.c
drivers/oprofile/oprofile_perf.c
drivers/oprofile/oprofile_stats.c
drivers/oprofile/oprofilefs.c
include/linux/oprofile.h

index a44608b697ace08f6f62c99fae28d961dfe33b03..310a4ce1dccc0a1da774bcc89acee06b1d018857 100644 (file)
@@ -117,21 +117,21 @@ op_axp_create_files(struct dentry *root)
                snprintf(buf, sizeof buf, "%d", i);
                dir = oprofilefs_mkdir(root, buf);
 
-               oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled);
-                oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event);
-               oprofilefs_create_ulong(root->d_sb, dir, "count", &ctr[i].count);
+               oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled);
+                oprofilefs_create_ulong(dir, "event", &ctr[i].event);
+               oprofilefs_create_ulong(dir, "count", &ctr[i].count);
                /* Dummies.  */
-               oprofilefs_create_ulong(root->d_sb, dir, "kernel", &ctr[i].kernel);
-               oprofilefs_create_ulong(root->d_sb, dir, "user", &ctr[i].user);
-               oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &ctr[i].unit_mask);
+               oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel);
+               oprofilefs_create_ulong(dir, "user", &ctr[i].user);
+               oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask);
        }
 
        if (model->can_set_proc_mode) {
-               oprofilefs_create_ulong(root->d_sb, root, "enable_pal",
+               oprofilefs_create_ulong(root, "enable_pal",
                                        &sys.enable_pal);
-               oprofilefs_create_ulong(root->d_sb, root, "enable_kernel",
+               oprofilefs_create_ulong(root, "enable_kernel",
                                        &sys.enable_kernel);
-               oprofilefs_create_ulong(root->d_sb, root, "enable_user",
+               oprofilefs_create_ulong(root, "enable_user",
                                        &sys.enable_user);
        }
 
index 7d920a41b44132651118d44ea4c8cfd2e39557da..08308be2c02c6ea3421a747f610d68660e34c8b9 100644 (file)
@@ -107,19 +107,19 @@ static int avr32_perf_counter_create_files(struct dentry *root)
                snprintf(filename, sizeof(filename), "%u", i);
                dir = oprofilefs_mkdir(root, filename);
 
-               oprofilefs_create_ulong(root->d_sb, dir, "enabled",
+               oprofilefs_create_ulong(dir, "enabled",
                                &counter[i].enabled);
-               oprofilefs_create_ulong(root->d_sb, dir, "event",
+               oprofilefs_create_ulong(dir, "event",
                                &counter[i].event);
-               oprofilefs_create_ulong(root->d_sb, dir, "count",
+               oprofilefs_create_ulong(dir, "count",
                                &counter[i].count);
 
                /* Dummy entries */
-               oprofilefs_create_ulong(root->d_sb, dir, "kernel",
+               oprofilefs_create_ulong(dir, "kernel",
                                &counter[i].kernel);
-               oprofilefs_create_ulong(root->d_sb, dir, "user",
+               oprofilefs_create_ulong(dir, "user",
                                &counter[i].user);
-               oprofilefs_create_ulong(root->d_sb, dir, "unit_mask",
+               oprofilefs_create_ulong(dir, "unit_mask",
                                &counter[i].unit_mask);
        }
 
index 755caf04656e5098d86127976c9367fc79196635..5e5424753b5624b9c66511db86d7c98fed11d2f0 100644 (file)
@@ -44,14 +44,14 @@ static int op_mips_create_files(struct dentry *root)
                snprintf(buf, sizeof buf, "%d", i);
                dir = oprofilefs_mkdir(root, buf);
 
-               oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled);
-               oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event);
-               oprofilefs_create_ulong(root->d_sb, dir, "count", &ctr[i].count);
-               oprofilefs_create_ulong(root->d_sb, dir, "kernel", &ctr[i].kernel);
-               oprofilefs_create_ulong(root->d_sb, dir, "user", &ctr[i].user);
-               oprofilefs_create_ulong(root->d_sb, dir, "exl", &ctr[i].exl);
+               oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled);
+               oprofilefs_create_ulong(dir, "event", &ctr[i].event);
+               oprofilefs_create_ulong(dir, "count", &ctr[i].count);
+               oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel);
+               oprofilefs_create_ulong(dir, "user", &ctr[i].user);
+               oprofilefs_create_ulong(dir, "exl", &ctr[i].exl);
                /* Dummy.  */
-               oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &ctr[i].unit_mask);
+               oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask);
        }
 
        return 0;
index 60a286b367fcafeedc515fd498bf7de61fdbb7a9..c77348c5d463df8e26c832fc4169e08f66bfa0b5 100644 (file)
@@ -128,9 +128,9 @@ static int op_powerpc_create_files(struct dentry *root)
         * There is one mmcr0, mmcr1 and mmcra for setting the events for
         * all of the counters.
         */
-       oprofilefs_create_ulong(root->d_sb, root, "mmcr0", &sys.mmcr0);
-       oprofilefs_create_ulong(root->d_sb, root, "mmcr1", &sys.mmcr1);
-       oprofilefs_create_ulong(root->d_sb, root, "mmcra", &sys.mmcra);
+       oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0);
+       oprofilefs_create_ulong(root, "mmcr1", &sys.mmcr1);
+       oprofilefs_create_ulong(root, "mmcra", &sys.mmcra);
 #ifdef CONFIG_OPROFILE_CELL
        /* create a file the user tool can check to see what level of profiling
         * support exits with this kernel. Initialize bit mask to indicate
@@ -142,7 +142,7 @@ static int op_powerpc_create_files(struct dentry *root)
         * If the file does not exist, then the kernel only supports SPU
         * cycle profiling, PPU event and cycle profiling.
         */
-       oprofilefs_create_ulong(root->d_sb, root, "cell_support", &sys.cell_support);
+       oprofilefs_create_ulong(root, "cell_support", &sys.cell_support);
        sys.cell_support = 0x1; /* Note, the user OProfile tool must check
                                 * that this bit is set before attempting to
                                 * user SPU event profiling.  Older kernels
@@ -162,9 +162,9 @@ static int op_powerpc_create_files(struct dentry *root)
                snprintf(buf, sizeof buf, "%d", i);
                dir = oprofilefs_mkdir(root, buf);
 
-               oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled);
-               oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event);
-               oprofilefs_create_ulong(root->d_sb, dir, "count", &ctr[i].count);
+               oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled);
+               oprofilefs_create_ulong(dir, "event", &ctr[i].event);
+               oprofilefs_create_ulong(dir, "count", &ctr[i].count);
 
                /*
                 * Classic PowerPC doesn't support per-counter
@@ -173,14 +173,14 @@ static int op_powerpc_create_files(struct dentry *root)
                 * Book-E style performance monitors, we do
                 * support them.
                 */
-               oprofilefs_create_ulong(root->d_sb, dir, "kernel", &ctr[i].kernel);
-               oprofilefs_create_ulong(root->d_sb, dir, "user", &ctr[i].user);
+               oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel);
+               oprofilefs_create_ulong(dir, "user", &ctr[i].user);
 
-               oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &ctr[i].unit_mask);
+               oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask);
        }
 
-       oprofilefs_create_ulong(root->d_sb, root, "enable_kernel", &sys.enable_kernel);
-       oprofilefs_create_ulong(root->d_sb, root, "enable_user", &sys.enable_user);
+       oprofilefs_create_ulong(root, "enable_kernel", &sys.enable_kernel);
+       oprofilefs_create_ulong(root, "enable_user", &sys.enable_user);
 
        /* Default to tracing both kernel and user */
        sys.enable_kernel = 1;
index 5ae06db7ec58a60ca75c9c007e6067c8503279bf..04e1b6a8536297cc61f2bacc0187c0b6a7089573 100644 (file)
@@ -354,7 +354,7 @@ static int oprofile_create_hwsampling_files(struct dentry *root)
        if (!dir)
                return -EINVAL;
 
-       oprofilefs_create_file(root->d_sb, dir, "enabled", &timer_enabled_fops);
+       oprofilefs_create_file(dir, "enabled", &timer_enabled_fops);
 
        if (!hwsampler_available)
                return 0;
@@ -379,13 +379,13 @@ static int oprofile_create_hwsampling_files(struct dentry *root)
                if (!dir)
                        return -EINVAL;
 
-               oprofilefs_create_file(root->d_sb, dir, "enabled", &hwsampler_fops);
-               oprofilefs_create_file(root->d_sb, dir, "event", &zero_fops);
-               oprofilefs_create_file(root->d_sb, dir, "count", &hw_interval_fops);
-               oprofilefs_create_file(root->d_sb, dir, "unit_mask", &zero_fops);
-               oprofilefs_create_file(root->d_sb, dir, "kernel", &kernel_fops);
-               oprofilefs_create_file(root->d_sb, dir, "user", &user_fops);
-               oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks",
+               oprofilefs_create_file(dir, "enabled", &hwsampler_fops);
+               oprofilefs_create_file(dir, "event", &zero_fops);
+               oprofilefs_create_file(dir, "count", &hw_interval_fops);
+               oprofilefs_create_file(dir, "unit_mask", &zero_fops);
+               oprofilefs_create_file(dir, "kernel", &kernel_fops);
+               oprofilefs_create_file(dir, "user", &user_fops);
+               oprofilefs_create_ulong(dir, "hw_sdbt_blocks",
                                        &oprofile_sdbt_blocks);
 
        } else {
@@ -399,15 +399,15 @@ static int oprofile_create_hwsampling_files(struct dentry *root)
                if (!dir)
                        return -EINVAL;
 
-               oprofilefs_create_file(root->d_sb, dir, "hwsampler",
+               oprofilefs_create_file(dir, "hwsampler",
                                       &hwsampler_fops);
-               oprofilefs_create_file(root->d_sb, dir, "hw_interval",
+               oprofilefs_create_file(dir, "hw_interval",
                                       &hw_interval_fops);
-               oprofilefs_create_ro_ulong(root->d_sb, dir, "hw_min_interval",
+               oprofilefs_create_ro_ulong(dir, "hw_min_interval",
                                           &oprofile_min_interval);
-               oprofilefs_create_ro_ulong(root->d_sb, dir, "hw_max_interval",
+               oprofilefs_create_ro_ulong(dir, "hw_max_interval",
                                           &oprofile_max_interval);
-               oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks",
+               oprofilefs_create_ulong(dir, "hw_sdbt_blocks",
                                        &oprofile_sdbt_blocks);
        }
        return 0;
index 8bb2de6e103c5bd3cff726e79a21475a918d06d9..6890d8498e0becb308244819265647e6d400513b 100644 (file)
@@ -421,13 +421,13 @@ static int nmi_create_files(struct dentry *root)
 
                snprintf(buf,  sizeof(buf), "%d", i);
                dir = oprofilefs_mkdir(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);
-               oprofilefs_create_ulong(root->d_sb, dir, "extra", &counter_config[i].extra);
+               oprofilefs_create_ulong(dir, "enabled", &counter_config[i].enabled);
+               oprofilefs_create_ulong(dir, "event", &counter_config[i].event);
+               oprofilefs_create_ulong(dir, "count", &counter_config[i].count);
+               oprofilefs_create_ulong(dir, "unit_mask", &counter_config[i].unit_mask);
+               oprofilefs_create_ulong(dir, "kernel", &counter_config[i].kernel);
+               oprofilefs_create_ulong(dir, "user", &counter_config[i].user);
+               oprofilefs_create_ulong(dir, "extra", &counter_config[i].extra);
        }
 
        return 0;
index 99131435ea32a4d1b3e54a0afc4999d16cc0ca22..50d86c0e9ba4973b707de5917cfae78692fd6f68 100644 (file)
@@ -480,25 +480,25 @@ static int setup_ibs_files(struct dentry *root)
 
        if (ibs_caps & IBS_CAPS_FETCHSAM) {
                dir = oprofilefs_mkdir(root, "ibs_fetch");
-               oprofilefs_create_ulong(root->d_sb, dir, "enable",
+               oprofilefs_create_ulong(dir, "enable",
                                        &ibs_config.fetch_enabled);
-               oprofilefs_create_ulong(root->d_sb, dir, "max_count",
+               oprofilefs_create_ulong(dir, "max_count",
                                        &ibs_config.max_cnt_fetch);
-               oprofilefs_create_ulong(root->d_sb, dir, "rand_enable",
+               oprofilefs_create_ulong(dir, "rand_enable",
                                        &ibs_config.rand_en);
        }
 
        if (ibs_caps & IBS_CAPS_OPSAM) {
                dir = oprofilefs_mkdir(root, "ibs_op");
-               oprofilefs_create_ulong(root->d_sb, dir, "enable",
+               oprofilefs_create_ulong(dir, "enable",
                                        &ibs_config.op_enabled);
-               oprofilefs_create_ulong(root->d_sb, dir, "max_count",
+               oprofilefs_create_ulong(dir, "max_count",
                                        &ibs_config.max_cnt_op);
                if (ibs_caps & IBS_CAPS_OPCNT)
-                       oprofilefs_create_ulong(root->d_sb, dir, "dispatched_ops",
+                       oprofilefs_create_ulong(dir, "dispatched_ops",
                                                &ibs_config.dispatched_ops);
                if (ibs_caps & IBS_CAPS_BRNTRGT)
-                       oprofilefs_create_ulong(root->d_sb, dir, "branch_target",
+                       oprofilefs_create_ulong(dir, "branch_target",
                                                &ibs_config.branch_target);
        }
 
index 07462a9af615f7fc7ee1aa7864f62b76628e256e..ee2cfce358b9810b5d1f06e28d18e86e1dec0a98 100644 (file)
@@ -183,17 +183,17 @@ void oprofile_create_files(struct dentry *root)
        oprofile_buffer_watershed =     BUFFER_WATERSHED_DEFAULT;
        oprofile_time_slice =           msecs_to_jiffies(TIME_SLICE_DEFAULT);
 
-       oprofilefs_create_file(root->d_sb, root, "enable", &enable_fops);
-       oprofilefs_create_file_perm(root->d_sb, root, "dump", &dump_fops, 0666);
-       oprofilefs_create_file(root->d_sb, root, "buffer", &event_buffer_fops);
-       oprofilefs_create_ulong(root->d_sb, root, "buffer_size", &oprofile_buffer_size);
-       oprofilefs_create_ulong(root->d_sb, root, "buffer_watershed", &oprofile_buffer_watershed);
-       oprofilefs_create_ulong(root->d_sb, root, "cpu_buffer_size", &oprofile_cpu_buffer_size);
-       oprofilefs_create_file(root->d_sb, root, "cpu_type", &cpu_type_fops);
-       oprofilefs_create_file(root->d_sb, root, "backtrace_depth", &depth_fops);
-       oprofilefs_create_file(root->d_sb, root, "pointer_size", &pointer_size_fops);
+       oprofilefs_create_file(root, "enable", &enable_fops);
+       oprofilefs_create_file_perm(root, "dump", &dump_fops, 0666);
+       oprofilefs_create_file(root, "buffer", &event_buffer_fops);
+       oprofilefs_create_ulong(root, "buffer_size", &oprofile_buffer_size);
+       oprofilefs_create_ulong(root, "buffer_watershed", &oprofile_buffer_watershed);
+       oprofilefs_create_ulong(root, "cpu_buffer_size", &oprofile_cpu_buffer_size);
+       oprofilefs_create_file(root, "cpu_type", &cpu_type_fops);
+       oprofilefs_create_file(root, "backtrace_depth", &depth_fops);
+       oprofilefs_create_file(root, "pointer_size", &pointer_size_fops);
 #ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
-       oprofilefs_create_file(root->d_sb, root, "time_slice", &timeout_fops);
+       oprofilefs_create_file(root, "time_slice", &timeout_fops);
 #endif
        oprofile_create_stats_files(root);
        if (oprofile_ops.create_files)
index 923a245774faa0c1020722fc4c27dd3bcf352844..d5b2732b1b818ede3e815ed5f5d3d30030b16544 100644 (file)
@@ -148,12 +148,12 @@ static int oprofile_perf_create_files(struct dentry *root)
 
                snprintf(buf, sizeof buf, "%d", i);
                dir = oprofilefs_mkdir(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);
+               oprofilefs_create_ulong(dir, "enabled", &counter_config[i].enabled);
+               oprofilefs_create_ulong(dir, "event", &counter_config[i].event);
+               oprofilefs_create_ulong(dir, "count", &counter_config[i].count);
+               oprofilefs_create_ulong(dir, "unit_mask", &counter_config[i].unit_mask);
+               oprofilefs_create_ulong(dir, "kernel", &counter_config[i].kernel);
+               oprofilefs_create_ulong(dir, "user", &counter_config[i].user);
        }
 
        return 0;
index 8cf2fa9710a4418803dc806a20c8c3eb1940cab6..59659cea45823a505a50a041e35e282ae8eea29d 100644 (file)
@@ -59,26 +59,26 @@ void oprofile_create_stats_files(struct dentry *root)
                 * but we can't simply lock them, and they are
                 * informational only.
                 */
-               oprofilefs_create_ro_ulong(root->d_sb, cpudir, "sample_received",
+               oprofilefs_create_ro_ulong(cpudir, "sample_received",
                        &cpu_buf->sample_received);
-               oprofilefs_create_ro_ulong(root->d_sb, cpudir, "sample_lost_overflow",
+               oprofilefs_create_ro_ulong(cpudir, "sample_lost_overflow",
                        &cpu_buf->sample_lost_overflow);
-               oprofilefs_create_ro_ulong(root->d_sb, cpudir, "backtrace_aborted",
+               oprofilefs_create_ro_ulong(cpudir, "backtrace_aborted",
                        &cpu_buf->backtrace_aborted);
-               oprofilefs_create_ro_ulong(root->d_sb, cpudir, "sample_invalid_eip",
+               oprofilefs_create_ro_ulong(cpudir, "sample_invalid_eip",
                        &cpu_buf->sample_invalid_eip);
        }
 
-       oprofilefs_create_ro_atomic(root->d_sb, dir, "sample_lost_no_mm",
+       oprofilefs_create_ro_atomic(dir, "sample_lost_no_mm",
                &oprofile_stats.sample_lost_no_mm);
-       oprofilefs_create_ro_atomic(root->d_sb, dir, "sample_lost_no_mapping",
+       oprofilefs_create_ro_atomic(dir, "sample_lost_no_mapping",
                &oprofile_stats.sample_lost_no_mapping);
-       oprofilefs_create_ro_atomic(root->d_sb, dir, "event_lost_overflow",
+       oprofilefs_create_ro_atomic(dir, "event_lost_overflow",
                &oprofile_stats.event_lost_overflow);
-       oprofilefs_create_ro_atomic(root->d_sb, dir, "bt_lost_no_mapping",
+       oprofilefs_create_ro_atomic(dir, "bt_lost_no_mapping",
                &oprofile_stats.bt_lost_no_mapping);
 #ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
-       oprofilefs_create_ro_atomic(root->d_sb, dir, "multiplex_counter",
+       oprofilefs_create_ro_atomic(dir, "multiplex_counter",
                &oprofile_stats.multiplex_counter);
 #endif
 }
index 6a345724637f6fc8f936bd26af0e457dceb66fec..3f493459378faa15d4cfe872af18b0970b19d98c 100644 (file)
@@ -132,9 +132,8 @@ static const struct file_operations ulong_ro_fops = {
 };
 
 
-static int __oprofilefs_create_file(struct super_block *sb,
-       struct dentry *root, char const *name, const struct file_operations *fops,
-       int perm, void *priv)
+static int __oprofilefs_create_file(struct dentry *root, char const *name,
+       const struct file_operations *fops, int perm, void *priv)
 {
        struct dentry *dentry;
        struct inode *inode;
@@ -145,7 +144,7 @@ static int __oprofilefs_create_file(struct super_block *sb,
                mutex_unlock(&root->d_inode->i_mutex);
                return -ENOMEM;
        }
-       inode = oprofilefs_get_inode(sb, S_IFREG | perm);
+       inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm);
        if (!inode) {
                dput(dentry);
                mutex_unlock(&root->d_inode->i_mutex);
@@ -159,18 +158,18 @@ static int __oprofilefs_create_file(struct super_block *sb,
 }
 
 
-int oprofilefs_create_ulong(struct super_block *sb, struct dentry *root,
+int oprofilefs_create_ulong(struct dentry *root,
        char const *name, unsigned long *val)
 {
-       return __oprofilefs_create_file(sb, root, name,
+       return __oprofilefs_create_file(root, name,
                                        &ulong_fops, 0644, val);
 }
 
 
-int oprofilefs_create_ro_ulong(struct super_block *sb, struct dentry *root,
+int oprofilefs_create_ro_ulong(struct dentry *root,
        char const *name, unsigned long *val)
 {
-       return __oprofilefs_create_file(sb, root, name,
+       return __oprofilefs_create_file(root, name,
                                        &ulong_ro_fops, 0444, val);
 }
 
@@ -189,25 +188,25 @@ static const struct file_operations atomic_ro_fops = {
 };
 
 
-int oprofilefs_create_ro_atomic(struct super_block *sb, struct dentry *root,
+int oprofilefs_create_ro_atomic(struct dentry *root,
        char const *name, atomic_t *val)
 {
-       return __oprofilefs_create_file(sb, root, name,
+       return __oprofilefs_create_file(root, name,
                                        &atomic_ro_fops, 0444, val);
 }
 
 
-int oprofilefs_create_file(struct super_block *sb, struct dentry *root,
+int oprofilefs_create_file(struct dentry *root,
        char const *name, const struct file_operations *fops)
 {
-       return __oprofilefs_create_file(sb, root, name, fops, 0644, NULL);
+       return __oprofilefs_create_file(root, name, fops, 0644, NULL);
 }
 
 
-int oprofilefs_create_file_perm(struct super_block *sb, struct dentry *root,
+int oprofilefs_create_file_perm(struct dentry *root,
        char const *name, const struct file_operations *fops, int perm)
 {
-       return __oprofilefs_create_file(sb, root, name, fops, perm, NULL);
+       return __oprofilefs_create_file(root, name, fops, perm, NULL);
 }
 
 
index 957877e7a40852566555b497c842442736a56d9f..166ef4fb4b5cfd87b8a29c940eae1e838b39958e 100644 (file)
@@ -125,22 +125,22 @@ void oprofile_add_trace(unsigned long eip);
  * Create a file of the given name as a child of the given root, with
  * the specified file operations.
  */
-int oprofilefs_create_file(struct super_block * sb, struct dentry * root,
+int oprofilefs_create_file(struct dentry * root,
        char const * name, const struct file_operations * fops);
 
-int oprofilefs_create_file_perm(struct super_block * sb, struct dentry * root,
+int oprofilefs_create_file_perm(struct dentry * root,
        char const * name, const struct file_operations * fops, int perm);
  
 /** Create a file for read/write access to an unsigned long. */
-int oprofilefs_create_ulong(struct super_block * sb, struct dentry * root,
+int oprofilefs_create_ulong(struct dentry * root,
        char const * name, ulong * val);
  
 /** Create a file for read-only access to an unsigned long. */
-int oprofilefs_create_ro_ulong(struct super_block * sb, struct dentry * root,
+int oprofilefs_create_ro_ulong(struct dentry * root,
        char const * name, ulong * val);
  
 /** Create a file for read-only access to an atomic_t. */
-int oprofilefs_create_ro_atomic(struct super_block * sb, struct dentry * root,
+int oprofilefs_create_ro_atomic(struct dentry * root,
        char const * name, atomic_t * val);
  
 /** create a directory */