projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55f0b4c
)
GFS2: Fix previous patch
author
Steven Whitehouse
<swhiteho@redhat.com>
Fri, 29 Jan 2010 15:20:34 +0000
(15:20 +0000)
committer
Steven 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/rgrp.c
b/fs/gfs2/rgrp.c
index 6702b82b375c605b05982056e5916d91b3d28079..46534a554cceb44a9ada82773ad2ca2a33c93f3f 100644
(file)
--- 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);