diff options
author | Jan Harkes <jaharkes@cs.cmu.edu> | 2007-07-19 04:48:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:48 -0400 |
commit | 3cf01f28c303be34f18cb4f6204cf1bdfe12ba7c (patch) | |
tree | 140dae900c998f568ddac7bf74e390fda4d5e8ce /fs/coda/dir.c | |
parent | a1b0aa87647493c0201821ab884e86298d5da7d6 (diff) |
coda: remove statistics counters from /proc/fs/coda
Similar information can easily be obtained with strace -c.
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/coda/dir.c')
-rw-r--r-- | fs/coda/dir.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 0c6c48ca749..04a3dd84c99 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/coda_psdev.h> | 25 | #include <linux/coda_psdev.h> |
26 | #include <linux/coda_fs_i.h> | 26 | #include <linux/coda_fs_i.h> |
27 | #include <linux/coda_cache.h> | 27 | #include <linux/coda_cache.h> |
28 | #include <linux/coda_proc.h> | ||
29 | 28 | ||
30 | #include "coda_int.h" | 29 | #include "coda_int.h" |
31 | 30 | ||
@@ -148,8 +147,6 @@ int coda_permission(struct inode *inode, int mask, struct nameidata *nd) | |||
148 | 147 | ||
149 | lock_kernel(); | 148 | lock_kernel(); |
150 | 149 | ||
151 | coda_vfs_stat.permission++; | ||
152 | |||
153 | if (coda_cache_check(inode, mask)) | 150 | if (coda_cache_check(inode, mask)) |
154 | goto out; | 151 | goto out; |
155 | 152 | ||
@@ -206,7 +203,6 @@ static int coda_create(struct inode *dir, struct dentry *de, int mode, struct na | |||
206 | struct coda_vattr attrs; | 203 | struct coda_vattr attrs; |
207 | 204 | ||
208 | lock_kernel(); | 205 | lock_kernel(); |
209 | coda_vfs_stat.create++; | ||
210 | 206 | ||
211 | if (coda_isroot(dir) && coda_iscontrol(name, length)) { | 207 | if (coda_isroot(dir) && coda_iscontrol(name, length)) { |
212 | unlock_kernel(); | 208 | unlock_kernel(); |
@@ -246,7 +242,6 @@ static int coda_mkdir(struct inode *dir, struct dentry *de, int mode) | |||
246 | struct CodaFid newfid; | 242 | struct CodaFid newfid; |
247 | 243 | ||
248 | lock_kernel(); | 244 | lock_kernel(); |
249 | coda_vfs_stat.mkdir++; | ||
250 | 245 | ||
251 | if (coda_isroot(dir) && coda_iscontrol(name, len)) { | 246 | if (coda_isroot(dir) && coda_iscontrol(name, len)) { |
252 | unlock_kernel(); | 247 | unlock_kernel(); |
@@ -288,7 +283,6 @@ static int coda_link(struct dentry *source_de, struct inode *dir_inode, | |||
288 | int error; | 283 | int error; |
289 | 284 | ||
290 | lock_kernel(); | 285 | lock_kernel(); |
291 | coda_vfs_stat.link++; | ||
292 | 286 | ||
293 | if (coda_isroot(dir_inode) && coda_iscontrol(name, len)) { | 287 | if (coda_isroot(dir_inode) && coda_iscontrol(name, len)) { |
294 | unlock_kernel(); | 288 | unlock_kernel(); |
@@ -320,10 +314,9 @@ static int coda_symlink(struct inode *dir_inode, struct dentry *de, | |||
320 | const char *name = de->d_name.name; | 314 | const char *name = de->d_name.name; |
321 | int len = de->d_name.len; | 315 | int len = de->d_name.len; |
322 | int symlen; | 316 | int symlen; |
323 | int error=0; | 317 | int error = 0; |
324 | 318 | ||
325 | lock_kernel(); | 319 | lock_kernel(); |
326 | coda_vfs_stat.symlink++; | ||
327 | 320 | ||
328 | if (coda_isroot(dir_inode) && coda_iscontrol(name, len)) { | 321 | if (coda_isroot(dir_inode) && coda_iscontrol(name, len)) { |
329 | unlock_kernel(); | 322 | unlock_kernel(); |
@@ -360,7 +353,6 @@ int coda_unlink(struct inode *dir, struct dentry *de) | |||
360 | int len = de->d_name.len; | 353 | int len = de->d_name.len; |
361 | 354 | ||
362 | lock_kernel(); | 355 | lock_kernel(); |
363 | coda_vfs_stat.unlink++; | ||
364 | 356 | ||
365 | error = venus_remove(dir->i_sb, coda_i2f(dir), name, len); | 357 | error = venus_remove(dir->i_sb, coda_i2f(dir), name, len); |
366 | if ( error ) { | 358 | if ( error ) { |
@@ -381,7 +373,6 @@ int coda_rmdir(struct inode *dir, struct dentry *de) | |||
381 | int error; | 373 | int error; |
382 | 374 | ||
383 | lock_kernel(); | 375 | lock_kernel(); |
384 | coda_vfs_stat.rmdir++; | ||
385 | 376 | ||
386 | error = venus_rmdir(dir->i_sb, coda_i2f(dir), name, len); | 377 | error = venus_rmdir(dir->i_sb, coda_i2f(dir), name, len); |
387 | if (!error) { | 378 | if (!error) { |
@@ -408,7 +399,6 @@ static int coda_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
408 | int error; | 399 | int error; |
409 | 400 | ||
410 | lock_kernel(); | 401 | lock_kernel(); |
411 | coda_vfs_stat.rename++; | ||
412 | 402 | ||
413 | error = venus_rename(old_dir->i_sb, coda_i2f(old_dir), | 403 | error = venus_rename(old_dir->i_sb, coda_i2f(old_dir), |
414 | coda_i2f(new_dir), old_length, new_length, | 404 | coda_i2f(new_dir), old_length, new_length, |
@@ -445,8 +435,6 @@ int coda_readdir(struct file *coda_file, void *buf, filldir_t filldir) | |||
445 | BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); | 435 | BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); |
446 | host_file = cfi->cfi_container; | 436 | host_file = cfi->cfi_container; |
447 | 437 | ||
448 | coda_vfs_stat.readdir++; | ||
449 | |||
450 | if (!host_file->f_op) | 438 | if (!host_file->f_op) |
451 | return -ENOTDIR; | 439 | return -ENOTDIR; |
452 | 440 | ||