GFS2: Fix previous patch
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 29 Jan 2010 15:20:34 +0000 (15:20 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 1 Feb 2010 10:00:23 +0000 (10:00 +0000)
The do_div() call needs to remain.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c

index 6702b82..46534a5 100644 (file)
@@ -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);