1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

lower the default hash size if SEMMSL isn't defined

(This used to be commit 9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda)
This commit is contained in:
Andrew Tridgell 1997-10-28 14:40:31 +00:00
parent ba4d965fc0
commit e75de8adc6
2 changed files with 6 additions and 4 deletions

View File

@ -49,7 +49,7 @@
#ifdef SEMMSL
#define SHMEM_HASH_SIZE (SEMMSL-1)
#else
#define SHMEM_HASH_SIZE 113
#define SHMEM_HASH_SIZE 15
#endif
#endif
@ -1312,9 +1312,6 @@ typedef struct
} share_mode_entry;
/* Conversion to hash entry index from device and inode numbers. */
#define HASH_ENTRY(dev,ino) ((( (uint32)(dev) )* ( (uint32)(ino) )) % lp_shmem_hash_size())
/* each implementation of the share mode code needs
to support the following operations */
struct share_ops {

View File

@ -62,6 +62,11 @@ typedef struct
static int read_only;
/* Conversion to hash entry index from device and inode numbers. */
#define HASH_ENTRY(dev,ino) ((( (uint32)(dev) )* ( (uint32)(ino) )) % lp_shmem_hash_size())
/*******************************************************************
deinitialize the shared memory for share_mode management
******************************************************************/