mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +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 commit is contained in:
parent
a43fa71a5f
commit
623ffd701f
@ -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())
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user