diff options
Diffstat (limited to 'drivers/oprofile/oprofile_stats.c')
-rw-r--r-- | drivers/oprofile/oprofile_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/oprofile/oprofile_stats.c b/drivers/oprofile/oprofile_stats.c index 627dce478311..8cf2fa9710a4 100644 --- a/drivers/oprofile/oprofile_stats.c +++ b/drivers/oprofile/oprofile_stats.c | |||
@@ -46,14 +46,14 @@ void oprofile_create_stats_files(struct dentry *root) | |||
46 | char buf[10]; | 46 | char buf[10]; |
47 | int i; | 47 | int i; |
48 | 48 | ||
49 | dir = oprofilefs_mkdir(root->d_sb, root, "stats"); | 49 | dir = oprofilefs_mkdir(root, "stats"); |
50 | if (!dir) | 50 | if (!dir) |
51 | return; | 51 | return; |
52 | 52 | ||
53 | for_each_possible_cpu(i) { | 53 | for_each_possible_cpu(i) { |
54 | cpu_buf = &per_cpu(op_cpu_buffer, i); | 54 | cpu_buf = &per_cpu(op_cpu_buffer, i); |
55 | snprintf(buf, 10, "cpu%d", i); | 55 | snprintf(buf, 10, "cpu%d", i); |
56 | cpudir = oprofilefs_mkdir(root->d_sb, dir, buf); | 56 | cpudir = oprofilefs_mkdir(dir, buf); |
57 | 57 | ||
58 | /* Strictly speaking access to these ulongs is racy, | 58 | /* Strictly speaking access to these ulongs is racy, |
59 | * but we can't simply lock them, and they are | 59 | * but we can't simply lock them, and they are |