aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-06-15 03:45:05 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-06-15 03:45:05 -0400
commit0610b6e99939828b77eec020ead0e1f44cba38ca (patch)
treeede610c64a0456a43618e500c577b35e462f8953 /fs/ext4/ext4.h
parent11013911daea4820147ae6d7094dd7c6894e8651 (diff)
downloadkernel_samsung_espresso10-0610b6e99939828b77eec020ead0e1f44cba38ca.zip
kernel_samsung_espresso10-0610b6e99939828b77eec020ead0e1f44cba38ca.tar.gz
kernel_samsung_espresso10-0610b6e99939828b77eec020ead0e1f44cba38ca.tar.bz2
ext4: Fix 64-bit block type problem on 32-bit platforms
The function ext4_mb_free_blocks() was using an "unsigned long" to pass a block number; this will cause 64-bit block numbers to get truncated on x86 and other 32-bit platforms. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 746cdcb..17b9998 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1341,7 +1341,7 @@ extern void ext4_discard_preallocations(struct inode *);
extern int __init init_ext4_mballoc(void);
extern void exit_ext4_mballoc(void);
extern void ext4_mb_free_blocks(handle_t *, struct inode *,
- unsigned long, unsigned long, int, unsigned long *);
+ ext4_fsblk_t, unsigned long, int, unsigned long *);
extern int ext4_mb_add_groupinfo(struct super_block *sb,
ext4_group_t i, struct ext4_group_desc *desc);
extern void ext4_mb_update_group_info(struct ext4_group_info *grp,