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_super.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_super.c')
-rw-r--r-- | fs/gfs2/ops_super.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/gfs2/ops_super.c b/fs/gfs2/ops_super.c index 9130d0d0df3c..cd45ec93a043 100644 --- a/fs/gfs2/ops_super.c +++ b/fs/gfs2/ops_super.c | |||
@@ -46,8 +46,6 @@ static int gfs2_write_inode(struct inode *inode, int sync) | |||
46 | { | 46 | { |
47 | struct gfs2_inode *ip = get_v2ip(inode); | 47 | struct gfs2_inode *ip = get_v2ip(inode); |
48 | 48 | ||
49 | atomic_inc(&ip->i_sbd->sd_ops_super); | ||
50 | |||
51 | if (current->flags & PF_MEMALLOC) | 49 | if (current->flags & PF_MEMALLOC) |
52 | return 0; | 50 | return 0; |
53 | if (ip && sync) | 51 | if (ip && sync) |
@@ -70,8 +68,6 @@ static void gfs2_put_super(struct super_block *sb) | |||
70 | if (!sdp) | 68 | if (!sdp) |
71 | return; | 69 | return; |
72 | 70 | ||
73 | atomic_inc(&sdp->sd_ops_super); | ||
74 | |||
75 | /* Unfreeze the filesystem, if we need to */ | 71 | /* Unfreeze the filesystem, if we need to */ |
76 | 72 | ||
77 | mutex_lock(&sdp->sd_freeze_lock); | 73 | mutex_lock(&sdp->sd_freeze_lock); |
@@ -156,7 +152,6 @@ static void gfs2_put_super(struct super_block *sb) | |||
156 | static void gfs2_write_super(struct super_block *sb) | 152 | static void gfs2_write_super(struct super_block *sb) |
157 | { | 153 | { |
158 | struct gfs2_sbd *sdp = get_v2sdp(sb); | 154 | struct gfs2_sbd *sdp = get_v2sdp(sb); |
159 | atomic_inc(&sdp->sd_ops_super); | ||
160 | gfs2_log_flush(sdp); | 155 | gfs2_log_flush(sdp); |
161 | } | 156 | } |
162 | 157 | ||
@@ -171,8 +166,6 @@ static void gfs2_write_super_lockfs(struct super_block *sb) | |||
171 | struct gfs2_sbd *sdp = get_v2sdp(sb); | 166 | struct gfs2_sbd *sdp = get_v2sdp(sb); |
172 | int error; | 167 | int error; |
173 | 168 | ||
174 | atomic_inc(&sdp->sd_ops_super); | ||
175 | |||
176 | for (;;) { | 169 | for (;;) { |
177 | error = gfs2_freeze_fs(sdp); | 170 | error = gfs2_freeze_fs(sdp); |
178 | if (!error) | 171 | if (!error) |
@@ -202,8 +195,6 @@ static void gfs2_write_super_lockfs(struct super_block *sb) | |||
202 | static void gfs2_unlockfs(struct super_block *sb) | 195 | static void gfs2_unlockfs(struct super_block *sb) |
203 | { | 196 | { |
204 | struct gfs2_sbd *sdp = get_v2sdp(sb); | 197 | struct gfs2_sbd *sdp = get_v2sdp(sb); |
205 | |||
206 | atomic_inc(&sdp->sd_ops_super); | ||
207 | gfs2_unfreeze_fs(sdp); | 198 | gfs2_unfreeze_fs(sdp); |
208 | } | 199 | } |
209 | 200 | ||
@@ -221,8 +212,6 @@ static int gfs2_statfs(struct super_block *sb, struct kstatfs *buf) | |||
221 | struct gfs2_statfs_change sc; | 212 | struct gfs2_statfs_change sc; |
222 | int error; | 213 | int error; |
223 | 214 | ||
224 | atomic_inc(&sdp->sd_ops_super); | ||
225 | |||
226 | if (gfs2_tune_get(sdp, gt_statfs_slow)) | 215 | if (gfs2_tune_get(sdp, gt_statfs_slow)) |
227 | error = gfs2_statfs_slow(sdp, &sc); | 216 | error = gfs2_statfs_slow(sdp, &sc); |
228 | else | 217 | else |
@@ -259,8 +248,6 @@ static int gfs2_remount_fs(struct super_block *sb, int *flags, char *data) | |||
259 | struct gfs2_sbd *sdp = get_v2sdp(sb); | 248 | struct gfs2_sbd *sdp = get_v2sdp(sb); |
260 | int error; | 249 | int error; |
261 | 250 | ||
262 | atomic_inc(&sdp->sd_ops_super); | ||
263 | |||
264 | error = gfs2_mount_args(sdp, data, 1); | 251 | error = gfs2_mount_args(sdp, data, 1); |
265 | if (error) | 252 | if (error) |
266 | return error; | 253 | return error; |
@@ -298,8 +285,6 @@ static void gfs2_clear_inode(struct inode *inode) | |||
298 | { | 285 | { |
299 | struct gfs2_inode *ip = get_v2ip(inode); | 286 | struct gfs2_inode *ip = get_v2ip(inode); |
300 | 287 | ||
301 | atomic_inc(&get_v2sdp(inode->i_sb)->sd_ops_super); | ||
302 | |||
303 | if (ip) { | 288 | if (ip) { |
304 | spin_lock(&ip->i_spin); | 289 | spin_lock(&ip->i_spin); |
305 | ip->i_vnode = NULL; | 290 | ip->i_vnode = NULL; |
@@ -324,8 +309,6 @@ static int gfs2_show_options(struct seq_file *s, struct vfsmount *mnt) | |||
324 | struct gfs2_sbd *sdp = get_v2sdp(mnt->mnt_sb); | 309 | struct gfs2_sbd *sdp = get_v2sdp(mnt->mnt_sb); |
325 | struct gfs2_args *args = &sdp->sd_args; | 310 | struct gfs2_args *args = &sdp->sd_args; |
326 | 311 | ||
327 | atomic_inc(&sdp->sd_ops_super); | ||
328 | |||
329 | if (args->ar_lockproto[0]) | 312 | if (args->ar_lockproto[0]) |
330 | seq_printf(s, ",lockproto=%s", args->ar_lockproto); | 313 | seq_printf(s, ",lockproto=%s", args->ar_lockproto); |
331 | if (args->ar_locktable[0]) | 314 | if (args->ar_locktable[0]) |