s3:smbd: inline fsp_lease_type_is_exclusive() logic into contend_level2_oplocks_begin...
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Aug 2022 10:52:54 +0000 (12:52 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 19 Aug 2022 18:41:34 +0000 (18:41 +0000)
commit76da56aa65bb9fe7f2f8c4a2e30e278a61db1ff5
tree6296dadb7dd5c0db14211f31f978c5f814cbd3c5
parentbf8f2258497f7d2a5a5f8d1cacf1a30899ed455c
s3:smbd: inline fsp_lease_type_is_exclusive() logic into contend_level2_oplocks_begin_default

SMB2_LEASE_WRITE is the indication for an exclusive lease,
the fact that a SMB2_LEASE_WRITE can't exists without
SMB2_LEASE_READ is not important here.

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/leases_util.c
source3/locking/proto.h
source3/smbd/smb2_oplock.c