From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Tue, 2 Feb 2010 09:47:24 +0000 Subject: [Cluster-devel] [PATCH 3/4] GFS2: Fix previous patch In-Reply-To: <1265104045-15957-3-git-send-email-swhiteho@redhat.com> References: <1265104045-15957-1-git-send-email-swhiteho@redhat.com> <1265104045-15957-2-git-send-email-swhiteho@redhat.com> <1265104045-15957-3-git-send-email-swhiteho@redhat.com> Message-ID: <1265104045-15957-4-git-send-email-swhiteho@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The do_div() call needs to remain. Signed-off-by: Steven Whitehouse --- fs/gfs2/rgrp.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 6702b82..46534a5 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -591,6 +591,7 @@ static int gfs2_ri_update(struct gfs2_inode *ip) u64 rgrp_count = ip->i_disksize; int error; + do_div(rgrp_count, sizeof(struct gfs2_rindex)); clear_rgrpdi(sdp); file_ra_state_init(&ra_state, inode->i_mapping); -- 1.6.2.5