Whamcloud - gitweb
iam: change number of bits used by TEA portion of sandwich hash.
authornikita <nikita>
Tue, 5 Dec 2006 22:03:24 +0000 (22:03 +0000)
committernikita <nikita>
Tue, 5 Dec 2006 22:03:24 +0000 (22:03 +0000)
lustre/kernel_patches/patches/ext3-iam-separate.patch
lustre/obdclass/mea.c

index f25dcfb..b6b3b1c 100644 (file)
@@ -3096,7 +3096,7 @@ Index: iam/fs/ext3/iam_lvar.c
 +                        hinfo.seed = 0;
 +                        ext3fs_dirhash(name, namelen, &hinfo);
 +                        result2 = hinfo.hash;
-+                        result = (0xff000000 & result2) | (0x00ffffff & result);
++                        result = (0xfc000000 & result2) | (0x03ffffff & result);
 +                }
 +        }
 +        return result;
index 051fe79..03888e5 100644 (file)
@@ -101,7 +101,7 @@ static __u32 hash_build0(const char *name, int namelen)
                         hinfo.seed = 0;
                         ldiskfsfs_dirhash(name, namelen, &hinfo);
                         result2 = hinfo.hash;
-                        result = (0xff000000 & result2) | (0x00ffffff & result);
+                        result = (0xfc000000 & result2) | (0x03ffffff & result);
                 }
         }