diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-10-28 13:21:44 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-10-28 13:21:44 -0400 |
commit | f99b25897a86fcfff9140396a97261ae65fed872 (patch) | |
tree | 2191505f190d09ff31896487c73b8187cb475596 /fs/ext4/ext4.h | |
parent | 5e1f8c9e20a92743eefc9a82c2db835213905e26 (diff) |
ext4: Add support for non-native signed/unsigned htree hash algorithms
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>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index b0537c827024..8370ffd2d62f 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -891,6 +891,9 @@ static inline __le16 ext4_rec_len_to_disk(unsigned len) | |||
891 | #define DX_HASH_LEGACY 0 | 891 | #define DX_HASH_LEGACY 0 |
892 | #define DX_HASH_HALF_MD4 1 | 892 | #define DX_HASH_HALF_MD4 1 |
893 | #define DX_HASH_TEA 2 | 893 | #define DX_HASH_TEA 2 |
894 | #define DX_HASH_LEGACY_UNSIGNED 3 | ||
895 | #define DX_HASH_HALF_MD4_UNSIGNED 4 | ||
896 | #define DX_HASH_TEA_UNSIGNED 5 | ||
894 | 897 | ||
895 | #ifdef __KERNEL__ | 898 | #ifdef __KERNEL__ |
896 | 899 | ||