diff options
author | David Teigland <teigland@redhat.com> | 2006-02-23 05:11:47 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-23 05:11:47 -0500 |
commit | 6a6b3d018f4781f108d170f2181281a3c5589dc8 (patch) | |
tree | 471b6b8392fbcad36e62161c8f97893f97f0699e /fs/gfs2/ops_export.c | |
parent | 8d3b35a4af87965d1873872b21e504558f62116a (diff) |
[GFS2] Patch to remove stats gathering from GFS2
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_export.c')
-rw-r--r-- | fs/gfs2/ops_export.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/gfs2/ops_export.c b/fs/gfs2/ops_export.c index 8389f771d28b..611252b7a0d6 100644 --- a/fs/gfs2/ops_export.c +++ b/fs/gfs2/ops_export.c | |||
@@ -32,8 +32,6 @@ static struct dentry *gfs2_decode_fh(struct super_block *sb, | |||
32 | { | 32 | { |
33 | struct gfs2_inum this, parent; | 33 | struct gfs2_inum this, parent; |
34 | 34 | ||
35 | atomic_inc(&get_v2sdp(sb)->sd_ops_export); | ||
36 | |||
37 | if (fh_type != fh_len) | 35 | if (fh_type != fh_len) |
38 | return NULL; | 36 | return NULL; |
39 | 37 | ||
@@ -66,8 +64,6 @@ static int gfs2_encode_fh(struct dentry *dentry, __u32 *fh, int *len, | |||
66 | struct gfs2_inode *ip = get_v2ip(inode); | 64 | struct gfs2_inode *ip = get_v2ip(inode); |
67 | struct gfs2_sbd *sdp = ip->i_sbd; | 65 | struct gfs2_sbd *sdp = ip->i_sbd; |
68 | 66 | ||
69 | atomic_inc(&sdp->sd_ops_export); | ||
70 | |||
71 | if (*len < 4 || (connectable && *len < 8)) | 67 | if (*len < 4 || (connectable && *len < 8)) |
72 | return 255; | 68 | return 255; |
73 | 69 | ||
@@ -139,8 +135,6 @@ static int gfs2_get_name(struct dentry *parent, char *name, | |||
139 | if (!dir) | 135 | if (!dir) |
140 | return -EINVAL; | 136 | return -EINVAL; |
141 | 137 | ||
142 | atomic_inc(&get_v2sdp(dir->i_sb)->sd_ops_export); | ||
143 | |||
144 | if (!S_ISDIR(dir->i_mode) || !inode) | 138 | if (!S_ISDIR(dir->i_mode) || !inode) |
145 | return -EINVAL; | 139 | return -EINVAL; |
146 | 140 | ||
@@ -173,8 +167,6 @@ static struct dentry *gfs2_get_parent(struct dentry *child) | |||
173 | struct dentry *dentry; | 167 | struct dentry *dentry; |
174 | int error; | 168 | int error; |
175 | 169 | ||
176 | atomic_inc(&dip->i_sbd->sd_ops_export); | ||
177 | |||
178 | error = gfs2_lookupi(child->d_inode, &dotdot, 1, &inode); | 170 | error = gfs2_lookupi(child->d_inode, &dotdot, 1, &inode); |
179 | if (error) | 171 | if (error) |
180 | return ERR_PTR(error); | 172 | return ERR_PTR(error); |
@@ -199,8 +191,6 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb, void *inum_p) | |||
199 | struct dentry *dentry; | 191 | struct dentry *dentry; |
200 | int error; | 192 | int error; |
201 | 193 | ||
202 | atomic_inc(&sdp->sd_ops_export); | ||
203 | |||
204 | /* System files? */ | 194 | /* System files? */ |
205 | 195 | ||
206 | inode = gfs2_iget(sb, inum); | 196 | inode = gfs2_iget(sb, inum); |
@@ -256,8 +246,6 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb, void *inum_p) | |||
256 | goto fail; | 246 | goto fail; |
257 | } | 247 | } |
258 | 248 | ||
259 | atomic_inc(&sdp->sd_fh2dentry_misses); | ||
260 | |||
261 | out_ip: | 249 | out_ip: |
262 | error = -EIO; | 250 | error = -EIO; |
263 | if (ip->i_di.di_flags & GFS2_DIF_SYSTEM) { | 251 | if (ip->i_di.di_flags & GFS2_DIF_SYSTEM) { |