oprofile: don't bother with passing superblock to ->create_files()
[deliverable/linux.git] / drivers / oprofile / oprofile_perf.c
index f3cfa0b9adfa30fb9a95593d4f422ef25c2f4836..52ad942df04e3a0fe9debd69ac8c392749c2dce5 100644 (file)
@@ -138,7 +138,7 @@ static void op_perf_stop(void)
                        op_destroy_counter(cpu, event);
 }
 
-static int oprofile_perf_create_files(struct super_block *sb, struct dentry *root)
+static int oprofile_perf_create_files(struct dentry *root)
 {
        unsigned int i;
 
@@ -147,13 +147,13 @@ static int oprofile_perf_create_files(struct super_block *sb, struct dentry *roo
                char buf[4];
 
                snprintf(buf, sizeof buf, "%d", i);
-               dir = oprofilefs_mkdir(sb, root, buf);
-               oprofilefs_create_ulong(sb, dir, "enabled", &counter_config[i].enabled);
-               oprofilefs_create_ulong(sb, dir, "event", &counter_config[i].event);
-               oprofilefs_create_ulong(sb, dir, "count", &counter_config[i].count);
-               oprofilefs_create_ulong(sb, dir, "unit_mask", &counter_config[i].unit_mask);
-               oprofilefs_create_ulong(sb, dir, "kernel", &counter_config[i].kernel);
-               oprofilefs_create_ulong(sb, dir, "user", &counter_config[i].user);
+               dir = oprofilefs_mkdir(root->d_sb, 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);
        }
 
        return 0;
This page took 0.041752 seconds and 5 git commands to generate.