diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2008-11-04 04:47:33 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-01-05 02:38:58 -0500 |
commit | c9e98886776386f1f7828d9685e78cd341849867 (patch) | |
tree | 5bf4ac819d1e9394f960f21a48881a9d2f9f69fe /fs/gfs2/rgrp.c | |
parent | 3767ac21f471fe669a7d9f6abef682ddac8fc3d8 (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/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 2d90fb253505..bdad0dffc6b4 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -501,7 +501,7 @@ u64 gfs2_ri_total(struct gfs2_sbd *sdp) | |||
501 | for (rgrps = 0;; rgrps++) { | 501 | for (rgrps = 0;; rgrps++) { |
502 | loff_t pos = rgrps * sizeof(struct gfs2_rindex); | 502 | loff_t pos = rgrps * sizeof(struct gfs2_rindex); |
503 | 503 | ||
504 | if (pos + sizeof(struct gfs2_rindex) >= ip->i_di.di_size) | 504 | if (pos + sizeof(struct gfs2_rindex) >= ip->i_disksize) |
505 | break; | 505 | break; |
506 | error = gfs2_internal_read(ip, &ra_state, buf, &pos, | 506 | error = gfs2_internal_read(ip, &ra_state, buf, &pos, |
507 | sizeof(struct gfs2_rindex)); | 507 | sizeof(struct gfs2_rindex)); |
@@ -590,7 +590,7 @@ static int gfs2_ri_update(struct gfs2_inode *ip) | |||
590 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); | 590 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); |
591 | struct inode *inode = &ip->i_inode; | 591 | struct inode *inode = &ip->i_inode; |
592 | struct file_ra_state ra_state; | 592 | struct file_ra_state ra_state; |
593 | u64 rgrp_count = ip->i_di.di_size; | 593 | u64 rgrp_count = ip->i_disksize; |
594 | int error; | 594 | int error; |
595 | 595 | ||
596 | if (do_div(rgrp_count, sizeof(struct gfs2_rindex))) { | 596 | if (do_div(rgrp_count, sizeof(struct gfs2_rindex))) { |
@@ -634,7 +634,7 @@ static int gfs2_ri_update_special(struct gfs2_inode *ip) | |||
634 | for (sdp->sd_rgrps = 0;; sdp->sd_rgrps++) { | 634 | for (sdp->sd_rgrps = 0;; sdp->sd_rgrps++) { |
635 | /* Ignore partials */ | 635 | /* Ignore partials */ |
636 | if ((sdp->sd_rgrps + 1) * sizeof(struct gfs2_rindex) > | 636 | if ((sdp->sd_rgrps + 1) * sizeof(struct gfs2_rindex) > |
637 | ip->i_di.di_size) | 637 | ip->i_disksize) |
638 | break; | 638 | break; |
639 | error = read_rindex_entry(ip, &ra_state); | 639 | error = read_rindex_entry(ip, &ra_state); |
640 | if (error) { | 640 | if (error) { |