1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

change from * to ^ in hashing of device/inode. Using * meant that if

the device number happened to divide the number of hash buckets we
would only use a small fraction of the hash buckets, which would slow
things down.
(This used to be commit 623ffd701f2f966875d396d8b2df74f0cf874cda)
This commit is contained in:
Andrew Tridgell 1997-10-31 05:56:07 +00:00
parent 88bd62c9b0
commit 4400805208

View File

@ -64,7 +64,7 @@ static int read_only;
/* Conversion to hash entry index from device and inode numbers. */
#define HASH_ENTRY(dev,ino) ((((uint32)(dev)) * ((uint32)(ino))) % shmops->hash_size())
#define HASH_ENTRY(dev,ino) ((((uint32)(dev)) ^ ((uint32)(ino))) % shmops->hash_size())
/*******************************************************************