aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-06-20 16:13:49 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-06-20 16:13:49 -0400
commit0d42e54220ba34e031167138ef91cbd42d8b5876 (patch)
tree9f00e97b90d3763159d302afacea07ee2ab986f6 /fs
parent0239c4ae8aa5cdee6dc3792effc2800d65292c04 (diff)
[GFS2] Remove unused ra_state variable
As per Nick Piggin's comments on lkml, remove the unused ra_state variable. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/quota.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index d3cd5171d7c7..1892b29ec98d 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -649,7 +649,6 @@ static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda)
649 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_sbd; 649 struct gfs2_sbd *sdp = (*qda)->qd_gl->gl_sbd;
650 struct gfs2_inode *ip = GFS2_I(sdp->sd_quota_inode); 650 struct gfs2_inode *ip = GFS2_I(sdp->sd_quota_inode);
651 unsigned int data_blocks, ind_blocks; 651 unsigned int data_blocks, ind_blocks;
652 struct file_ra_state ra_state;
653 struct gfs2_holder *ghs, i_gh; 652 struct gfs2_holder *ghs, i_gh;
654 unsigned int qx, x; 653 unsigned int qx, x;
655 struct gfs2_quota_data *qd; 654 struct gfs2_quota_data *qd;
@@ -716,7 +715,6 @@ static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda)
716 goto out_gunlock; 715 goto out_gunlock;
717 } 716 }
718 717
719 file_ra_state_init(&ra_state, ip->i_inode.i_mapping);
720 for (x = 0; x < num_qd; x++) { 718 for (x = 0; x < num_qd; x++) {
721 qd = qda[x]; 719 qd = qda[x];
722 offset = qd2offset(qd); 720 offset = qd2offset(qd);
@@ -790,10 +788,8 @@ static int do_glock(struct gfs2_quota_data *qd, int force_refresh,
790 788
791 memset(buf, 0, sizeof(struct gfs2_quota)); 789 memset(buf, 0, sizeof(struct gfs2_quota));
792 pos = qd2offset(qd); 790 pos = qd2offset(qd);
793 error = gfs2_internal_read(ip, 791 error = gfs2_internal_read(ip, &ra_state, buf,
794 &ra_state, buf, 792 &pos, sizeof(struct gfs2_quota));
795 &pos,
796 sizeof(struct gfs2_quota));
797 if (error < 0) 793 if (error < 0)
798 goto fail_gunlock; 794 goto fail_gunlock;
799 795