[GFS2] Patch to remove stats gathering from GFS2

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
David Teigland
2006-02-23 10:11:47 +00:00
committed by Steven Whitehouse
parent 8d3b35a4af
commit 6a6b3d018f
12 changed files with 10 additions and 226 deletions

View File

@@ -32,8 +32,6 @@ static struct dentry *gfs2_decode_fh(struct super_block *sb,
{
struct gfs2_inum this, parent;
atomic_inc(&get_v2sdp(sb)->sd_ops_export);
if (fh_type != fh_len)
return NULL;
@@ -66,8 +64,6 @@ static int gfs2_encode_fh(struct dentry *dentry, __u32 *fh, int *len,
struct gfs2_inode *ip = get_v2ip(inode);
struct gfs2_sbd *sdp = ip->i_sbd;
atomic_inc(&sdp->sd_ops_export);
if (*len < 4 || (connectable && *len < 8))
return 255;
@@ -139,8 +135,6 @@ static int gfs2_get_name(struct dentry *parent, char *name,
if (!dir)
return -EINVAL;
atomic_inc(&get_v2sdp(dir->i_sb)->sd_ops_export);
if (!S_ISDIR(dir->i_mode) || !inode)
return -EINVAL;
@@ -173,8 +167,6 @@ static struct dentry *gfs2_get_parent(struct dentry *child)
struct dentry *dentry;
int error;
atomic_inc(&dip->i_sbd->sd_ops_export);
error = gfs2_lookupi(child->d_inode, &dotdot, 1, &inode);
if (error)
return ERR_PTR(error);
@@ -199,8 +191,6 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb, void *inum_p)
struct dentry *dentry;
int error;
atomic_inc(&sdp->sd_ops_export);
/* System files? */
inode = gfs2_iget(sb, inum);
@@ -256,8 +246,6 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb, void *inum_p)
goto fail;
}
atomic_inc(&sdp->sd_fh2dentry_misses);
out_ip:
error = -EIO;
if (ip->i_di.di_flags & GFS2_DIF_SYSTEM) {