diff options
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) { |