Andrew Morton f4e5bc244f [PATCH] ext4 64 bit divide fix
With CONFIG_LBD=n, sector_div() expands to a plain old divide.  But ext4 is
_not_ passing in a sector_t as the first argument, so...

fs/built-in.o: In function `ext4_get_group_no_and_offset':
fs/ext4/balloc.c:39: undefined reference to `__umoddi3'
fs/ext4/balloc.c:41: undefined reference to `__udivdi3'
fs/built-in.o: In function `find_group_orlov':
fs/ext4/ialloc.c:278: undefined reference to `__udivdi3'
fs/built-in.o: In function `ext4_fill_super':
fs/ext4/super.c:1488: undefined reference to `__udivdi3'
fs/ext4/super.c:1488: undefined reference to `__umoddi3'
fs/ext4/super.c:1594: undefined reference to `__udivdi3'
fs/ext4/super.c:1601: undefined reference to `__umoddi3'

Fix that up by calling do_div() directly.

Also cast the arg to u64.  do_div() is only defined on u64, and ext4_fsblk_t
is supposed to be opaque.

Note especially the changes to find_group_orlov().  It was attempting to do

	do_div(int, unsigned long long);

which is royally screwed up.  Switched it to plain old divide.

Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-11 11:14:18 -07:00
..
2006-10-10 16:15:33 -07:00
2006-10-03 22:36:44 +02:00
2006-10-03 23:28:36 +02:00
2006-10-09 14:19:08 -07:00
2006-10-11 11:14:18 -07:00
2006-10-10 16:15:34 -07:00
2006-10-03 21:03:35 -04:00
2006-10-10 16:15:34 -07:00
2006-10-02 09:55:27 -05:00
2006-10-03 23:01:26 +02:00
2006-10-05 16:18:55 -07:00
2006-10-10 16:15:34 -07:00
2006-10-03 23:37:55 +02:00
2006-10-04 06:51:26 -06:00
2006-10-02 07:57:15 -07:00
2006-10-10 15:37:23 -07:00
2006-10-01 00:39:33 -07:00
2006-10-01 00:39:19 -07:00
2006-10-01 00:39:29 -07:00
2006-10-01 00:39:19 -07:00
2006-10-09 14:20:38 -07:00