aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/quota.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2008-11-04 04:47:33 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2009-01-05 02:38:58 -0500
commitc9e98886776386f1f7828d9685e78cd341849867 (patch)
tree5bf4ac819d1e9394f960f21a48881a9d2f9f69fe /fs/gfs2/quota.c
parent3767ac21f471fe669a7d9f6abef682ddac8fc3d8 (diff)
GFS2: Move i_size from gfs2_dinode_host and rename it to i_disksize
This patch moved the i_size field from the gfs2_dinode_host and following the ext3 convention renames it i_disksize. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r--fs/gfs2/quota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 3e073f5144fa..188d0a277fa3 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1100,15 +1100,15 @@ static void gfs2_quota_change_in(struct gfs2_quota_change_host *qc, const void *
1100int gfs2_quota_init(struct gfs2_sbd *sdp) 1100int gfs2_quota_init(struct gfs2_sbd *sdp)
1101{ 1101{
1102 struct gfs2_inode *ip = GFS2_I(sdp->sd_qc_inode); 1102 struct gfs2_inode *ip = GFS2_I(sdp->sd_qc_inode);
1103 unsigned int blocks = ip->i_di.di_size >> sdp->sd_sb.sb_bsize_shift; 1103 unsigned int blocks = ip->i_disksize >> sdp->sd_sb.sb_bsize_shift;
1104 unsigned int x, slot = 0; 1104 unsigned int x, slot = 0;
1105 unsigned int found = 0; 1105 unsigned int found = 0;
1106 u64 dblock; 1106 u64 dblock;
1107 u32 extlen = 0; 1107 u32 extlen = 0;
1108 int error; 1108 int error;
1109 1109
1110 if (!ip->i_di.di_size || ip->i_di.di_size > (64 << 20) || 1110 if (!ip->i_disksize || ip->i_disksize > (64 << 20) ||
1111 ip->i_di.di_size & (sdp->sd_sb.sb_bsize - 1)) { 1111 ip->i_disksize & (sdp->sd_sb.sb_bsize - 1)) {
1112 gfs2_consist_inode(ip); 1112 gfs2_consist_inode(ip);
1113 return -EIO; 1113 return -EIO;
1114 } 1114 }