aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-02-23 05:13:13 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-02-23 05:13:13 -0500
commitd95cb943f5b217c5b5f97f5af0fea3c511ed9c97 (patch)
treedc84771426edfedfd95bfdaafff218ade799d44a
parent6a6b3d018f4781f108d170f2181281a3c5589dc8 (diff)
[GFS2] Patch to remove stats counters from GFS2 (II)
Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r--fs/gfs2/glock.c2
-rw-r--r--fs/gfs2/ops_dentry.c1
-rw-r--r--fs/gfs2/ops_export.c1
-rw-r--r--fs/gfs2/ops_file.c2
4 files changed, 0 insertions, 6 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index cf1dc17faf4f..d4fa395ed39f 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -825,7 +825,6 @@ static void handle_callback(struct gfs2_glock *gl, unsigned int state)
825 825
826static void state_change(struct gfs2_glock *gl, unsigned int new_state) 826static void state_change(struct gfs2_glock *gl, unsigned int new_state)
827{ 827{
828 struct gfs2_sbd *sdp = gl->gl_sbd;
829 int held1, held2; 828 int held1, held2;
830 829
831 held1 = (gl->gl_state != LM_ST_UNLOCKED); 830 held1 = (gl->gl_state != LM_ST_UNLOCKED);
@@ -1390,7 +1389,6 @@ int gfs2_glock_wait(struct gfs2_holder *gh)
1390void gfs2_glock_dq(struct gfs2_holder *gh) 1389void gfs2_glock_dq(struct gfs2_holder *gh)
1391{ 1390{
1392 struct gfs2_glock *gl = gh->gh_gl; 1391 struct gfs2_glock *gl = gh->gh_gl;
1393 struct gfs2_sbd *sdp = gl->gl_sbd;
1394 struct gfs2_glock_operations *glops = gl->gl_ops; 1392 struct gfs2_glock_operations *glops = gl->gl_ops;
1395 1393
1396 if (gh->gh_flags & GL_SYNC) 1394 if (gh->gh_flags & GL_SYNC)
diff --git a/fs/gfs2/ops_dentry.c b/fs/gfs2/ops_dentry.c
index fb8f70d225b9..b020ad8f180b 100644
--- a/fs/gfs2/ops_dentry.c
+++ b/fs/gfs2/ops_dentry.c
@@ -35,7 +35,6 @@ static int gfs2_drevalidate(struct dentry *dentry, struct nameidata *nd)
35{ 35{
36 struct dentry *parent = dget_parent(dentry); 36 struct dentry *parent = dget_parent(dentry);
37 struct gfs2_inode *dip = get_v2ip(parent->d_inode); 37 struct gfs2_inode *dip = get_v2ip(parent->d_inode);
38 struct gfs2_sbd *sdp = dip->i_sbd;
39 struct inode *inode; 38 struct inode *inode;
40 struct gfs2_holder d_gh; 39 struct gfs2_holder d_gh;
41 struct gfs2_inode *ip; 40 struct gfs2_inode *ip;
diff --git a/fs/gfs2/ops_export.c b/fs/gfs2/ops_export.c
index 611252b7a0d6..60d006402553 100644
--- a/fs/gfs2/ops_export.c
+++ b/fs/gfs2/ops_export.c
@@ -161,7 +161,6 @@ static int gfs2_get_name(struct dentry *parent, char *name,
161 161
162static struct dentry *gfs2_get_parent(struct dentry *child) 162static struct dentry *gfs2_get_parent(struct dentry *child)
163{ 163{
164 struct gfs2_inode *dip = get_v2ip(child->d_inode);
165 struct qstr dotdot = { .name = "..", .len = 2 }; 164 struct qstr dotdot = { .name = "..", .len = 2 };
166 struct inode *inode; 165 struct inode *inode;
167 struct dentry *dentry; 166 struct dentry *dentry;
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c
index 0f80e9306016..989f0f70fc2e 100644
--- a/fs/gfs2/ops_file.c
+++ b/fs/gfs2/ops_file.c
@@ -299,7 +299,6 @@ static ssize_t gfs2_file_readv(struct file *filp, const struct iovec *iov,
299static ssize_t gfs2_file_aio_read(struct kiocb *iocb, char __user *buf, 299static ssize_t gfs2_file_aio_read(struct kiocb *iocb, char __user *buf,
300 size_t count, loff_t pos) 300 size_t count, loff_t pos)
301{ 301{
302 struct file *filp = iocb->ki_filp;
303 struct iovec local_iov = { .iov_base = buf, .iov_len = count }; 302 struct iovec local_iov = { .iov_base = buf, .iov_len = count };
304 303
305 BUG_ON(iocb->ki_pos != pos); 304 BUG_ON(iocb->ki_pos != pos);
@@ -818,7 +817,6 @@ static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl)
818static ssize_t gfs2_sendfile(struct file *in_file, loff_t *offset, size_t count, 817static ssize_t gfs2_sendfile(struct file *in_file, loff_t *offset, size_t count,
819 read_actor_t actor, void *target) 818 read_actor_t actor, void *target)
820{ 819{
821 struct gfs2_inode *ip = get_v2ip(in_file->f_mapping->host);
822 return generic_file_sendfile(in_file, offset, count, actor, target); 820 return generic_file_sendfile(in_file, offset, count, actor, target);
823} 821}
824 822