Skip to content

Commit

Permalink
GFS2: Fix previous patch
Browse files Browse the repository at this point in the history
The do_div() call needs to remain.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Feb 1, 2010
1 parent 55f0b4c commit 7fe3ec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7fe3ec6

Please sign in to comment.