smbd: Stop passing "share_mode_lock" via share_mode_forall_leases()
authorVolker Lendecke <vl@samba.org>
Tue, 10 Sep 2019 19:21:01 +0000 (21:21 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 17 Sep 2019 22:49:37 +0000 (22:49 +0000)
commitf69310672501c0e2d0afe638a18a0e21fec17298
tree5dff45c1ec7bf8350b0902394273183d70c1b6f9
parent4955481a678eb69df380c3c915cef95feec92443
smbd: Stop passing "share_mode_lock" via share_mode_forall_leases()

Why? Next commit will make share_mode_forall_leases() use
share_mode_forall_entries(), and that does not necessarily have to
depend on "share_mode_lock". And as we can pass the required
information via "private_data", don't embed the "share_mode_lock"
reference into this lowlevel library routine.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c
source3/locking/proto.h
source3/locking/share_mode_lock.c
source3/smbd/oplock.c