[PATCH] ext4: switch fsblk to sector_t

Redefine ext3 in-kernel filesystem block type (ext3_fsblk_t) from unsigned
long to sector_t, to allow kernel to handle  >32 bit ext3 blocks.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Mingming Cao
2006-10-11 01:21:05 -07:00
committed by Linus Torvalds
parent a86c618126
commit 3a5b2ecdd1
6 changed files with 57 additions and 30 deletions

View File

@ -25,9 +25,13 @@
typedef int ext4_grpblk_t;
/* data type for filesystem-wide blocks number */
typedef unsigned long ext4_fsblk_t;
typedef sector_t ext4_fsblk_t;
#if BITS_PER_LONG == 64
#define E3FSBLK "%lu"
#else
#define E3FSBLK "%llu"
#endif
struct ext4_reserve_window {
ext4_fsblk_t _rsv_start; /* First byte reserved */