mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
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>
This commit is contained in:
parent
a1b0aa8764
commit
3cf01f28c3
10 changed files with 15 additions and 333 deletions
|
@ -22,7 +22,6 @@
|
|||
#include <linux/coda_linux.h>
|
||||
#include <linux/coda_fs_i.h>
|
||||
#include <linux/coda_psdev.h>
|
||||
#include <linux/coda_proc.h>
|
||||
|
||||
#include "coda_int.h"
|
||||
|
||||
|
@ -134,8 +133,6 @@ int coda_open(struct inode *coda_inode, struct file *coda_file)
|
|||
unsigned short coda_flags = coda_flags_to_cflags(flags);
|
||||
struct coda_file_info *cfi;
|
||||
|
||||
coda_vfs_stat.open++;
|
||||
|
||||
cfi = kmalloc(sizeof(struct coda_file_info), GFP_KERNEL);
|
||||
if (!cfi)
|
||||
return -ENOMEM;
|
||||
|
@ -176,8 +173,6 @@ int coda_flush(struct file *coda_file, fl_owner_t id)
|
|||
|
||||
lock_kernel();
|
||||
|
||||
coda_vfs_stat.flush++;
|
||||
|
||||
/* last close semantics */
|
||||
fcnt = file_count(coda_file);
|
||||
if (fcnt > 1)
|
||||
|
@ -219,8 +214,7 @@ int coda_release(struct inode *coda_inode, struct file *coda_file)
|
|||
int err = 0;
|
||||
|
||||
lock_kernel();
|
||||
coda_vfs_stat.release++;
|
||||
|
||||
|
||||
if (!use_coda_close) {
|
||||
err = venus_release(coda_inode->i_sb, coda_i2f(coda_inode),
|
||||
coda_flags);
|
||||
|
@ -271,8 +265,6 @@ int coda_fsync(struct file *coda_file, struct dentry *coda_dentry, int datasync)
|
|||
BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC);
|
||||
host_file = cfi->cfi_container;
|
||||
|
||||
coda_vfs_stat.fsync++;
|
||||
|
||||
if (host_file->f_op && host_file->f_op->fsync) {
|
||||
host_dentry = host_file->f_path.dentry;
|
||||
host_inode = host_dentry->d_inode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue