Commit d95cb943 authored by David Teigland's avatar David Teigland Committed by Steven Whitehouse

[GFS2] Patch to remove stats counters from GFS2 (II)

Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 6a6b3d01
...@@ -825,7 +825,6 @@ static void handle_callback(struct gfs2_glock *gl, unsigned int state) ...@@ -825,7 +825,6 @@ static void handle_callback(struct gfs2_glock *gl, unsigned int state)
static void state_change(struct gfs2_glock *gl, unsigned int new_state) static void state_change(struct gfs2_glock *gl, unsigned int new_state)
{ {
struct gfs2_sbd *sdp = gl->gl_sbd;
int held1, held2; int held1, held2;
held1 = (gl->gl_state != LM_ST_UNLOCKED); held1 = (gl->gl_state != LM_ST_UNLOCKED);
...@@ -1390,7 +1389,6 @@ int gfs2_glock_wait(struct gfs2_holder *gh) ...@@ -1390,7 +1389,6 @@ int gfs2_glock_wait(struct gfs2_holder *gh)
void gfs2_glock_dq(struct gfs2_holder *gh) void gfs2_glock_dq(struct gfs2_holder *gh)
{ {
struct gfs2_glock *gl = gh->gh_gl; struct gfs2_glock *gl = gh->gh_gl;
struct gfs2_sbd *sdp = gl->gl_sbd;
struct gfs2_glock_operations *glops = gl->gl_ops; struct gfs2_glock_operations *glops = gl->gl_ops;
if (gh->gh_flags & GL_SYNC) if (gh->gh_flags & GL_SYNC)
......
...@@ -35,7 +35,6 @@ static int gfs2_drevalidate(struct dentry *dentry, struct nameidata *nd) ...@@ -35,7 +35,6 @@ static int gfs2_drevalidate(struct dentry *dentry, struct nameidata *nd)
{ {
struct dentry *parent = dget_parent(dentry); struct dentry *parent = dget_parent(dentry);
struct gfs2_inode *dip = get_v2ip(parent->d_inode); struct gfs2_inode *dip = get_v2ip(parent->d_inode);
struct gfs2_sbd *sdp = dip->i_sbd;
struct inode *inode; struct inode *inode;
struct gfs2_holder d_gh; struct gfs2_holder d_gh;
struct gfs2_inode *ip; struct gfs2_inode *ip;
......
...@@ -161,7 +161,6 @@ static int gfs2_get_name(struct dentry *parent, char *name, ...@@ -161,7 +161,6 @@ static int gfs2_get_name(struct dentry *parent, char *name,
static struct dentry *gfs2_get_parent(struct dentry *child) static struct dentry *gfs2_get_parent(struct dentry *child)
{ {
struct gfs2_inode *dip = get_v2ip(child->d_inode);
struct qstr dotdot = { .name = "..", .len = 2 }; struct qstr dotdot = { .name = "..", .len = 2 };
struct inode *inode; struct inode *inode;
struct dentry *dentry; struct dentry *dentry;
......
...@@ -299,7 +299,6 @@ static ssize_t gfs2_file_readv(struct file *filp, const struct iovec *iov, ...@@ -299,7 +299,6 @@ static ssize_t gfs2_file_readv(struct file *filp, const struct iovec *iov,
static ssize_t gfs2_file_aio_read(struct kiocb *iocb, char __user *buf, static ssize_t gfs2_file_aio_read(struct kiocb *iocb, char __user *buf,
size_t count, loff_t pos) size_t count, loff_t pos)
{ {
struct file *filp = iocb->ki_filp;
struct iovec local_iov = { .iov_base = buf, .iov_len = count }; struct iovec local_iov = { .iov_base = buf, .iov_len = count };
BUG_ON(iocb->ki_pos != pos); BUG_ON(iocb->ki_pos != pos);
...@@ -818,7 +817,6 @@ static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) ...@@ -818,7 +817,6 @@ static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl)
static ssize_t gfs2_sendfile(struct file *in_file, loff_t *offset, size_t count, static ssize_t gfs2_sendfile(struct file *in_file, loff_t *offset, size_t count,
read_actor_t actor, void *target) read_actor_t actor, void *target)
{ {
struct gfs2_inode *ip = get_v2ip(in_file->f_mapping->host);
return generic_file_sendfile(in_file, offset, count, actor, target); return generic_file_sendfile(in_file, offset, count, actor, target);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment