diff options
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking_shm.c | 5 |
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 ******************************************************************/ |