diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-28 14:40:31 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-28 14:40:31 +0000 |
commit | 9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda (patch) | |
tree | 1a63931faf964771ddd4793720dba490f06c0cbc /source/locking/locking_shm.c | |
parent | 6388da22eb95c8bfd3f17f5645bdaa16cfca0c6b (diff) | |
download | samba-9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda.tar.gz samba-9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda.tar.xz samba-9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda.zip |
lower the default hash size if SEMMSL isn't defined
Diffstat (limited to 'source/locking/locking_shm.c')
-rw-r--r-- | source/locking/locking_shm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/locking/locking_shm.c b/source/locking/locking_shm.c index f2ae6418086..3abd6b25a70 100644 --- a/source/locking/locking_shm.c +++ b/source/locking/locking_shm.c @@ -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 ******************************************************************/ |