ext4: Fix 64-bit block type problem on 32-bit platforms
authorTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 07:45:05 +0000 (03:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jun 2009 07:45:05 +0000 (03:45 -0400)
commit0610b6e99939828b77eec020ead0e1f44cba38ca
treeede610c64a0456a43618e500c577b35e462f8953
parent11013911daea4820147ae6d7094dd7c6894e8651
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>
fs/ext4/ext4.h
fs/ext4/mballoc.c