summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-28 14:40:31 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-28 14:40:31 +0000
commite75de8adc6918cc16ad84d2fa32cbc185d5b7fdb (patch)
tree095d680bb1647250d0d267c42d59683df2f362fc /source3/locking
parentba4d965fc0f78086171a5441545e561a0c4d044d (diff)
downloadsamba-e75de8adc6918cc16ad84d2fa32cbc185d5b7fdb.tar.gz
samba-e75de8adc6918cc16ad84d2fa32cbc185d5b7fdb.tar.bz2
samba-e75de8adc6918cc16ad84d2fa32cbc185d5b7fdb.zip
lower the default hash size if SEMMSL isn't defined
(This used to be commit 9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking_shm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/locking/locking_shm.c b/source3/locking/locking_shm.c
index f2ae641808..3abd6b25a7 100644
--- a/source3/locking/locking_shm.c
+++ b/source3/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
******************************************************************/