Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

oprofilefs_create_...() do not need superblock argument

same story as with oprofilefs_mkdir()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 6af4ea0b ecde2823

+104 -105
+9 -9
arch/alpha/oprofile/common.c
··· 117 117 snprintf(buf, sizeof buf, "%d", i); 118 118 dir = oprofilefs_mkdir(root, buf); 119 119 120 - oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled); 121 - oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event); 122 - oprofilefs_create_ulong(root->d_sb, dir, "count", &ctr[i].count); 120 + oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); 121 + oprofilefs_create_ulong(dir, "event", &ctr[i].event); 122 + oprofilefs_create_ulong(dir, "count", &ctr[i].count); 123 123 /* Dummies. */ 124 - oprofilefs_create_ulong(root->d_sb, dir, "kernel", &ctr[i].kernel); 125 - oprofilefs_create_ulong(root->d_sb, dir, "user", &ctr[i].user); 126 - oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &ctr[i].unit_mask); 124 + oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); 125 + oprofilefs_create_ulong(dir, "user", &ctr[i].user); 126 + oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); 127 127 } 128 128 129 129 if (model->can_set_proc_mode) { 130 - oprofilefs_create_ulong(root->d_sb, root, "enable_pal", 130 + oprofilefs_create_ulong(root, "enable_pal", 131 131 &sys.enable_pal); 132 - oprofilefs_create_ulong(root->d_sb, root, "enable_kernel", 132 + oprofilefs_create_ulong(root, "enable_kernel", 133 133 &sys.enable_kernel); 134 - oprofilefs_create_ulong(root->d_sb, root, "enable_user", 134 + oprofilefs_create_ulong(root, "enable_user", 135 135 &sys.enable_user); 136 136 } 137 137
+6 -6
arch/avr32/oprofile/op_model_avr32.c
··· 107 107 snprintf(filename, sizeof(filename), "%u", i); 108 108 dir = oprofilefs_mkdir(root, filename); 109 109 110 - oprofilefs_create_ulong(root->d_sb, dir, "enabled", 110 + oprofilefs_create_ulong(dir, "enabled", 111 111 &counter[i].enabled); 112 - oprofilefs_create_ulong(root->d_sb, dir, "event", 112 + oprofilefs_create_ulong(dir, "event", 113 113 &counter[i].event); 114 - oprofilefs_create_ulong(root->d_sb, dir, "count", 114 + oprofilefs_create_ulong(dir, "count", 115 115 &counter[i].count); 116 116 117 117 /* Dummy entries */ 118 - oprofilefs_create_ulong(root->d_sb, dir, "kernel", 118 + oprofilefs_create_ulong(dir, "kernel", 119 119 &counter[i].kernel); 120 - oprofilefs_create_ulong(root->d_sb, dir, "user", 120 + oprofilefs_create_ulong(dir, "user", 121 121 &counter[i].user); 122 - oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", 122 + oprofilefs_create_ulong(dir, "unit_mask", 123 123 &counter[i].unit_mask); 124 124 } 125 125
+7 -7
arch/mips/oprofile/common.c
··· 44 44 snprintf(buf, sizeof buf, "%d", i); 45 45 dir = oprofilefs_mkdir(root, buf); 46 46 47 - oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled); 48 - oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event); 49 - oprofilefs_create_ulong(root->d_sb, dir, "count", &ctr[i].count); 50 - oprofilefs_create_ulong(root->d_sb, dir, "kernel", &ctr[i].kernel); 51 - oprofilefs_create_ulong(root->d_sb, dir, "user", &ctr[i].user); 52 - oprofilefs_create_ulong(root->d_sb, dir, "exl", &ctr[i].exl); 47 + oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); 48 + oprofilefs_create_ulong(dir, "event", &ctr[i].event); 49 + oprofilefs_create_ulong(dir, "count", &ctr[i].count); 50 + oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); 51 + oprofilefs_create_ulong(dir, "user", &ctr[i].user); 52 + oprofilefs_create_ulong(dir, "exl", &ctr[i].exl); 53 53 /* Dummy. */ 54 - oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &ctr[i].unit_mask); 54 + oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); 55 55 } 56 56 57 57 return 0;
+12 -12
arch/powerpc/oprofile/common.c
··· 128 128 * There is one mmcr0, mmcr1 and mmcra for setting the events for 129 129 * all of the counters. 130 130 */ 131 - oprofilefs_create_ulong(root->d_sb, root, "mmcr0", &sys.mmcr0); 132 - oprofilefs_create_ulong(root->d_sb, root, "mmcr1", &sys.mmcr1); 133 - oprofilefs_create_ulong(root->d_sb, root, "mmcra", &sys.mmcra); 131 + oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0); 132 + oprofilefs_create_ulong(root, "mmcr1", &sys.mmcr1); 133 + oprofilefs_create_ulong(root, "mmcra", &sys.mmcra); 134 134 #ifdef CONFIG_OPROFILE_CELL 135 135 /* create a file the user tool can check to see what level of profiling 136 136 * support exits with this kernel. Initialize bit mask to indicate ··· 142 142 * If the file does not exist, then the kernel only supports SPU 143 143 * cycle profiling, PPU event and cycle profiling. 144 144 */ 145 - oprofilefs_create_ulong(root->d_sb, root, "cell_support", &sys.cell_support); 145 + oprofilefs_create_ulong(root, "cell_support", &sys.cell_support); 146 146 sys.cell_support = 0x1; /* Note, the user OProfile tool must check 147 147 * that this bit is set before attempting to 148 148 * user SPU event profiling. Older kernels ··· 162 162 snprintf(buf, sizeof buf, "%d", i); 163 163 dir = oprofilefs_mkdir(root, buf); 164 164 165 - oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled); 166 - oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event); 167 - oprofilefs_create_ulong(root->d_sb, dir, "count", &ctr[i].count); 165 + oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); 166 + oprofilefs_create_ulong(dir, "event", &ctr[i].event); 167 + oprofilefs_create_ulong(dir, "count", &ctr[i].count); 168 168 169 169 /* 170 170 * Classic PowerPC doesn't support per-counter ··· 173 173 * Book-E style performance monitors, we do 174 174 * support them. 175 175 */ 176 - oprofilefs_create_ulong(root->d_sb, dir, "kernel", &ctr[i].kernel); 177 - oprofilefs_create_ulong(root->d_sb, dir, "user", &ctr[i].user); 176 + oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); 177 + oprofilefs_create_ulong(dir, "user", &ctr[i].user); 178 178 179 - oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &ctr[i].unit_mask); 179 + oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); 180 180 } 181 181 182 - oprofilefs_create_ulong(root->d_sb, root, "enable_kernel", &sys.enable_kernel); 183 - oprofilefs_create_ulong(root->d_sb, root, "enable_user", &sys.enable_user); 182 + oprofilefs_create_ulong(root, "enable_kernel", &sys.enable_kernel); 183 + oprofilefs_create_ulong(root, "enable_user", &sys.enable_user); 184 184 185 185 /* Default to tracing both kernel and user */ 186 186 sys.enable_kernel = 1;
+13 -13
arch/s390/oprofile/init.c
··· 354 354 if (!dir) 355 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 359 if (!hwsampler_available) 360 360 return 0; ··· 379 379 if (!dir) 380 380 return -EINVAL; 381 381 382 - oprofilefs_create_file(root->d_sb, dir, "enabled", &hwsampler_fops); 383 - oprofilefs_create_file(root->d_sb, dir, "event", &zero_fops); 384 - oprofilefs_create_file(root->d_sb, dir, "count", &hw_interval_fops); 385 - oprofilefs_create_file(root->d_sb, dir, "unit_mask", &zero_fops); 386 - oprofilefs_create_file(root->d_sb, dir, "kernel", &kernel_fops); 387 - oprofilefs_create_file(root->d_sb, dir, "user", &user_fops); 388 - oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks", 382 + oprofilefs_create_file(dir, "enabled", &hwsampler_fops); 383 + oprofilefs_create_file(dir, "event", &zero_fops); 384 + oprofilefs_create_file(dir, "count", &hw_interval_fops); 385 + oprofilefs_create_file(dir, "unit_mask", &zero_fops); 386 + oprofilefs_create_file(dir, "kernel", &kernel_fops); 387 + oprofilefs_create_file(dir, "user", &user_fops); 388 + oprofilefs_create_ulong(dir, "hw_sdbt_blocks", 389 389 &oprofile_sdbt_blocks); 390 390 391 391 } else { ··· 399 399 if (!dir) 400 400 return -EINVAL; 401 401 402 - oprofilefs_create_file(root->d_sb, dir, "hwsampler", 402 + oprofilefs_create_file(dir, "hwsampler", 403 403 &hwsampler_fops); 404 - oprofilefs_create_file(root->d_sb, dir, "hw_interval", 404 + oprofilefs_create_file(dir, "hw_interval", 405 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 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 409 &oprofile_max_interval); 410 - oprofilefs_create_ulong(root->d_sb, dir, "hw_sdbt_blocks", 410 + oprofilefs_create_ulong(dir, "hw_sdbt_blocks", 411 411 &oprofile_sdbt_blocks); 412 412 } 413 413 return 0;
+7 -7
arch/x86/oprofile/nmi_int.c
··· 421 421 422 422 snprintf(buf, sizeof(buf), "%d", i); 423 423 dir = oprofilefs_mkdir(root, buf); 424 - oprofilefs_create_ulong(root->d_sb, dir, "enabled", &counter_config[i].enabled); 425 - oprofilefs_create_ulong(root->d_sb, dir, "event", &counter_config[i].event); 426 - oprofilefs_create_ulong(root->d_sb, dir, "count", &counter_config[i].count); 427 - oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &counter_config[i].unit_mask); 428 - oprofilefs_create_ulong(root->d_sb, dir, "kernel", &counter_config[i].kernel); 429 - oprofilefs_create_ulong(root->d_sb, dir, "user", &counter_config[i].user); 430 - oprofilefs_create_ulong(root->d_sb, dir, "extra", &counter_config[i].extra); 424 + oprofilefs_create_ulong(dir, "enabled", &counter_config[i].enabled); 425 + oprofilefs_create_ulong(dir, "event", &counter_config[i].event); 426 + oprofilefs_create_ulong(dir, "count", &counter_config[i].count); 427 + oprofilefs_create_ulong(dir, "unit_mask", &counter_config[i].unit_mask); 428 + oprofilefs_create_ulong(dir, "kernel", &counter_config[i].kernel); 429 + oprofilefs_create_ulong(dir, "user", &counter_config[i].user); 430 + oprofilefs_create_ulong(dir, "extra", &counter_config[i].extra); 431 431 } 432 432 433 433 return 0;
+7 -7
arch/x86/oprofile/op_model_amd.c
··· 480 480 481 481 if (ibs_caps & IBS_CAPS_FETCHSAM) { 482 482 dir = oprofilefs_mkdir(root, "ibs_fetch"); 483 - oprofilefs_create_ulong(root->d_sb, dir, "enable", 483 + oprofilefs_create_ulong(dir, "enable", 484 484 &ibs_config.fetch_enabled); 485 - oprofilefs_create_ulong(root->d_sb, dir, "max_count", 485 + oprofilefs_create_ulong(dir, "max_count", 486 486 &ibs_config.max_cnt_fetch); 487 - oprofilefs_create_ulong(root->d_sb, dir, "rand_enable", 487 + oprofilefs_create_ulong(dir, "rand_enable", 488 488 &ibs_config.rand_en); 489 489 } 490 490 491 491 if (ibs_caps & IBS_CAPS_OPSAM) { 492 492 dir = oprofilefs_mkdir(root, "ibs_op"); 493 - oprofilefs_create_ulong(root->d_sb, dir, "enable", 493 + oprofilefs_create_ulong(dir, "enable", 494 494 &ibs_config.op_enabled); 495 - oprofilefs_create_ulong(root->d_sb, dir, "max_count", 495 + oprofilefs_create_ulong(dir, "max_count", 496 496 &ibs_config.max_cnt_op); 497 497 if (ibs_caps & IBS_CAPS_OPCNT) 498 - oprofilefs_create_ulong(root->d_sb, dir, "dispatched_ops", 498 + oprofilefs_create_ulong(dir, "dispatched_ops", 499 499 &ibs_config.dispatched_ops); 500 500 if (ibs_caps & IBS_CAPS_BRNTRGT) 501 - oprofilefs_create_ulong(root->d_sb, dir, "branch_target", 501 + oprofilefs_create_ulong(dir, "branch_target", 502 502 &ibs_config.branch_target); 503 503 } 504 504
+10 -10
drivers/oprofile/oprofile_files.c
··· 183 183 oprofile_buffer_watershed = BUFFER_WATERSHED_DEFAULT; 184 184 oprofile_time_slice = msecs_to_jiffies(TIME_SLICE_DEFAULT); 185 185 186 - oprofilefs_create_file(root->d_sb, root, "enable", &enable_fops); 187 - oprofilefs_create_file_perm(root->d_sb, root, "dump", &dump_fops, 0666); 188 - oprofilefs_create_file(root->d_sb, root, "buffer", &event_buffer_fops); 189 - oprofilefs_create_ulong(root->d_sb, root, "buffer_size", &oprofile_buffer_size); 190 - oprofilefs_create_ulong(root->d_sb, root, "buffer_watershed", &oprofile_buffer_watershed); 191 - oprofilefs_create_ulong(root->d_sb, root, "cpu_buffer_size", &oprofile_cpu_buffer_size); 192 - oprofilefs_create_file(root->d_sb, root, "cpu_type", &cpu_type_fops); 193 - oprofilefs_create_file(root->d_sb, root, "backtrace_depth", &depth_fops); 194 - oprofilefs_create_file(root->d_sb, root, "pointer_size", &pointer_size_fops); 186 + oprofilefs_create_file(root, "enable", &enable_fops); 187 + oprofilefs_create_file_perm(root, "dump", &dump_fops, 0666); 188 + oprofilefs_create_file(root, "buffer", &event_buffer_fops); 189 + oprofilefs_create_ulong(root, "buffer_size", &oprofile_buffer_size); 190 + oprofilefs_create_ulong(root, "buffer_watershed", &oprofile_buffer_watershed); 191 + oprofilefs_create_ulong(root, "cpu_buffer_size", &oprofile_cpu_buffer_size); 192 + oprofilefs_create_file(root, "cpu_type", &cpu_type_fops); 193 + oprofilefs_create_file(root, "backtrace_depth", &depth_fops); 194 + oprofilefs_create_file(root, "pointer_size", &pointer_size_fops); 195 195 #ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX 196 - oprofilefs_create_file(root->d_sb, root, "time_slice", &timeout_fops); 196 + oprofilefs_create_file(root, "time_slice", &timeout_fops); 197 197 #endif 198 198 oprofile_create_stats_files(root); 199 199 if (oprofile_ops.create_files)
+6 -6
drivers/oprofile/oprofile_perf.c
··· 148 148 149 149 snprintf(buf, sizeof buf, "%d", i); 150 150 dir = oprofilefs_mkdir(root, buf); 151 - oprofilefs_create_ulong(root->d_sb, dir, "enabled", &counter_config[i].enabled); 152 - oprofilefs_create_ulong(root->d_sb, dir, "event", &counter_config[i].event); 153 - oprofilefs_create_ulong(root->d_sb, dir, "count", &counter_config[i].count); 154 - oprofilefs_create_ulong(root->d_sb, dir, "unit_mask", &counter_config[i].unit_mask); 155 - oprofilefs_create_ulong(root->d_sb, dir, "kernel", &counter_config[i].kernel); 156 - oprofilefs_create_ulong(root->d_sb, dir, "user", &counter_config[i].user); 151 + oprofilefs_create_ulong(dir, "enabled", &counter_config[i].enabled); 152 + oprofilefs_create_ulong(dir, "event", &counter_config[i].event); 153 + oprofilefs_create_ulong(dir, "count", &counter_config[i].count); 154 + oprofilefs_create_ulong(dir, "unit_mask", &counter_config[i].unit_mask); 155 + oprofilefs_create_ulong(dir, "kernel", &counter_config[i].kernel); 156 + oprofilefs_create_ulong(dir, "user", &counter_config[i].user); 157 157 } 158 158 159 159 return 0;
+9 -9
drivers/oprofile/oprofile_stats.c
··· 59 59 * but we can't simply lock them, and they are 60 60 * informational only. 61 61 */ 62 - oprofilefs_create_ro_ulong(root->d_sb, cpudir, "sample_received", 62 + oprofilefs_create_ro_ulong(cpudir, "sample_received", 63 63 &cpu_buf->sample_received); 64 - oprofilefs_create_ro_ulong(root->d_sb, cpudir, "sample_lost_overflow", 64 + oprofilefs_create_ro_ulong(cpudir, "sample_lost_overflow", 65 65 &cpu_buf->sample_lost_overflow); 66 - oprofilefs_create_ro_ulong(root->d_sb, cpudir, "backtrace_aborted", 66 + oprofilefs_create_ro_ulong(cpudir, "backtrace_aborted", 67 67 &cpu_buf->backtrace_aborted); 68 - oprofilefs_create_ro_ulong(root->d_sb, cpudir, "sample_invalid_eip", 68 + oprofilefs_create_ro_ulong(cpudir, "sample_invalid_eip", 69 69 &cpu_buf->sample_invalid_eip); 70 70 } 71 71 72 - oprofilefs_create_ro_atomic(root->d_sb, dir, "sample_lost_no_mm", 72 + oprofilefs_create_ro_atomic(dir, "sample_lost_no_mm", 73 73 &oprofile_stats.sample_lost_no_mm); 74 - oprofilefs_create_ro_atomic(root->d_sb, dir, "sample_lost_no_mapping", 74 + oprofilefs_create_ro_atomic(dir, "sample_lost_no_mapping", 75 75 &oprofile_stats.sample_lost_no_mapping); 76 - oprofilefs_create_ro_atomic(root->d_sb, dir, "event_lost_overflow", 76 + oprofilefs_create_ro_atomic(dir, "event_lost_overflow", 77 77 &oprofile_stats.event_lost_overflow); 78 - oprofilefs_create_ro_atomic(root->d_sb, dir, "bt_lost_no_mapping", 78 + oprofilefs_create_ro_atomic(dir, "bt_lost_no_mapping", 79 79 &oprofile_stats.bt_lost_no_mapping); 80 80 #ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX 81 - oprofilefs_create_ro_atomic(root->d_sb, dir, "multiplex_counter", 81 + oprofilefs_create_ro_atomic(dir, "multiplex_counter", 82 82 &oprofile_stats.multiplex_counter); 83 83 #endif 84 84 }
+13 -14
drivers/oprofile/oprofilefs.c
··· 132 132 }; 133 133 134 134 135 - static int __oprofilefs_create_file(struct super_block *sb, 136 - struct dentry *root, char const *name, const struct file_operations *fops, 137 - int perm, void *priv) 135 + static int __oprofilefs_create_file(struct dentry *root, char const *name, 136 + const struct file_operations *fops, int perm, void *priv) 138 137 { 139 138 struct dentry *dentry; 140 139 struct inode *inode; ··· 144 145 mutex_unlock(&root->d_inode->i_mutex); 145 146 return -ENOMEM; 146 147 } 147 - inode = oprofilefs_get_inode(sb, S_IFREG | perm); 148 + inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); 148 149 if (!inode) { 149 150 dput(dentry); 150 151 mutex_unlock(&root->d_inode->i_mutex); ··· 158 159 } 159 160 160 161 161 - int oprofilefs_create_ulong(struct super_block *sb, struct dentry *root, 162 + int oprofilefs_create_ulong(struct dentry *root, 162 163 char const *name, unsigned long *val) 163 164 { 164 - return __oprofilefs_create_file(sb, root, name, 165 + return __oprofilefs_create_file(root, name, 165 166 &ulong_fops, 0644, val); 166 167 } 167 168 168 169 169 - int oprofilefs_create_ro_ulong(struct super_block *sb, struct dentry *root, 170 + int oprofilefs_create_ro_ulong(struct dentry *root, 170 171 char const *name, unsigned long *val) 171 172 { 172 - return __oprofilefs_create_file(sb, root, name, 173 + return __oprofilefs_create_file(root, name, 173 174 &ulong_ro_fops, 0444, val); 174 175 } 175 176 ··· 188 189 }; 189 190 190 191 191 - int oprofilefs_create_ro_atomic(struct super_block *sb, struct dentry *root, 192 + int oprofilefs_create_ro_atomic(struct dentry *root, 192 193 char const *name, atomic_t *val) 193 194 { 194 - return __oprofilefs_create_file(sb, root, name, 195 + return __oprofilefs_create_file(root, name, 195 196 &atomic_ro_fops, 0444, val); 196 197 } 197 198 198 199 199 - int oprofilefs_create_file(struct super_block *sb, struct dentry *root, 200 + int oprofilefs_create_file(struct dentry *root, 200 201 char const *name, const struct file_operations *fops) 201 202 { 202 - return __oprofilefs_create_file(sb, root, name, fops, 0644, NULL); 203 + return __oprofilefs_create_file(root, name, fops, 0644, NULL); 203 204 } 204 205 205 206 206 - int oprofilefs_create_file_perm(struct super_block *sb, struct dentry *root, 207 + int oprofilefs_create_file_perm(struct dentry *root, 207 208 char const *name, const struct file_operations *fops, int perm) 208 209 { 209 - return __oprofilefs_create_file(sb, root, name, fops, perm, NULL); 210 + return __oprofilefs_create_file(root, name, fops, perm, NULL); 210 211 } 211 212 212 213
+5 -5
include/linux/oprofile.h
··· 125 125 * Create a file of the given name as a child of the given root, with 126 126 * the specified file operations. 127 127 */ 128 - int oprofilefs_create_file(struct super_block * sb, struct dentry * root, 128 + int oprofilefs_create_file(struct dentry * root, 129 129 char const * name, const struct file_operations * fops); 130 130 131 - int oprofilefs_create_file_perm(struct super_block * sb, struct dentry * root, 131 + int oprofilefs_create_file_perm(struct dentry * root, 132 132 char const * name, const struct file_operations * fops, int perm); 133 133 134 134 /** Create a file for read/write access to an unsigned long. */ 135 - int oprofilefs_create_ulong(struct super_block * sb, struct dentry * root, 135 + int oprofilefs_create_ulong(struct dentry * root, 136 136 char const * name, ulong * val); 137 137 138 138 /** Create a file for read-only access to an unsigned long. */ 139 - int oprofilefs_create_ro_ulong(struct super_block * sb, struct dentry * root, 139 + int oprofilefs_create_ro_ulong(struct dentry * root, 140 140 char const * name, ulong * val); 141 141 142 142 /** Create a file for read-only access to an atomic_t. */ 143 - int oprofilefs_create_ro_atomic(struct super_block * sb, struct dentry * root, 143 + int oprofilefs_create_ro_atomic(struct dentry * root, 144 144 char const * name, atomic_t * val); 145 145 146 146 /** create a directory */