diff options
author | Mingming Cao <cmm@us.ibm.com> | 2006-10-11 04:20:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:15 -0400 |
commit | 617ba13b31fbf505cc21799826639ef24ed94af0 (patch) | |
tree | 2a41e8c993f7c1eed115ad24047d546ba56cbdf5 /fs/ext4/hash.c | |
parent | ac27a0ec112a089f1a5102bc8dffc79c8c815571 (diff) |
[PATCH] ext4: rename ext4 symbols to avoid duplication of ext3 symbols
Mingming Cao originally did this work, and Shaggy reproduced it using some
scripts from her.
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>
Diffstat (limited to 'fs/ext4/hash.c')
-rw-r--r-- | fs/ext4/hash.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c index deeb27b5ba83..d15bb4274428 100644 --- a/fs/ext4/hash.c +++ b/fs/ext4/hash.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/ext3/hash.c | 2 | * linux/fs/ext4/hash.c |
3 | * | 3 | * |
4 | * Copyright (C) 2002 by Theodore Ts'o | 4 | * Copyright (C) 2002 by Theodore Ts'o |
5 | * | 5 | * |
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/fs.h> | 12 | #include <linux/fs.h> |
13 | #include <linux/jbd.h> | 13 | #include <linux/jbd.h> |
14 | #include <linux/sched.h> | 14 | #include <linux/sched.h> |
15 | #include <linux/ext3_fs.h> | 15 | #include <linux/ext4_fs.h> |
16 | #include <linux/cryptohash.h> | 16 | #include <linux/cryptohash.h> |
17 | 17 | ||
18 | #define DELTA 0x9E3779B9 | 18 | #define DELTA 0x9E3779B9 |
@@ -89,7 +89,7 @@ static void str2hashbuf(const char *msg, int len, __u32 *buf, int num) | |||
89 | * represented, and whether or not the returned hash is 32 bits or 64 | 89 | * represented, and whether or not the returned hash is 32 bits or 64 |
90 | * bits. 32 bit hashes will return 0 for the minor hash. | 90 | * bits. 32 bit hashes will return 0 for the minor hash. |
91 | */ | 91 | */ |
92 | int ext3fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) | 92 | int ext4fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) |
93 | { | 93 | { |
94 | __u32 hash; | 94 | __u32 hash; |
95 | __u32 minor_hash = 0; | 95 | __u32 minor_hash = 0; |
@@ -144,8 +144,8 @@ int ext3fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo) | |||
144 | return -1; | 144 | return -1; |
145 | } | 145 | } |
146 | hash = hash & ~1; | 146 | hash = hash & ~1; |
147 | if (hash == (EXT3_HTREE_EOF << 1)) | 147 | if (hash == (EXT4_HTREE_EOF << 1)) |
148 | hash = (EXT3_HTREE_EOF-1) << 1; | 148 | hash = (EXT4_HTREE_EOF-1) << 1; |
149 | hinfo->hash = hash; | 149 | hinfo->hash = hash; |
150 | hinfo->minor_hash = minor_hash; | 150 | hinfo->minor_hash = minor_hash; |
151 | return 0; | 151 | return 0; |