ext4: Add support for non-native signed/unsigned htree hash algorithms
authorTheodore Ts'o <tytso@mit.edu>
Tue, 17 Feb 2009 15:58:21 +0000 (10:58 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 20 Feb 2009 22:36:58 +0000 (14:36 -0800)
commit4836aa18f91a2bb43207810e0283285202f01fd7
treed160fc032636803b135979052a1056e486fbb4d8
parentf0bc833ff5ca8f4dba884b2eb95116e0da36185b
ext4: Add support for non-native signed/unsigned htree hash algorithms

(cherry picked from commit f99b25897a86fcfff9140396a97261ae65fed872)

The original ext3 hash algorithms assumed that variables of type char
were signed, as God and K&R intended.  Unfortunately, this assumption
is not true on some architectures.  Userspace support for marking
filesystems with non-native signed/unsigned chars was added two years
ago, but the kernel-side support was never added (until now).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/ext4.h
fs/ext4/ext4_sb.h
fs/ext4/hash.c
fs/ext4/namei.c
fs/ext4/super.c