s3:locking: remove static_share_mode_data_refcount
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Aug 2022 07:50:00 +0000 (09:50 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (00:34 +0000)
commit0b94695ebf8eb2edd6de7fc549857393461e4d50
tree5fc36ad0f9a838104646920433c63aa3af58bdd5
parentca9014d0378e1da8c30da4aae99a05005fe89b10
s3:locking: remove static_share_mode_data_refcount

The effective value of share_mode_lock_key_refcount
is 'share_mode_lock_key_refcount + static_share_mode_data_refcount',
which is quite confusing.

This complexity is not needed and we can just use
share_mode_lock_key_refcount.

This will also simplify further changes.

Review with: git show -U15 -w

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c