diff options
author | Volker Lendecke <vl@samba.org> | 2019-08-09 13:39:34 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-19 23:14:39 +0000 |
commit | 10679b67d1372bde37a1cdd639bebcc5f79a9c1b (patch) | |
tree | ed8d2b428d200aab6f265a4bb224d1da18a5bec6 | |
parent | d1cb71fa500ede015600ace58411c857b051794e (diff) | |
download | samba-10679b67d1372bde37a1cdd639bebcc5f79a9c1b.tar.gz |
smbd: Slightly simplify grant_fsp_oplock_type()
This is never called with INTERNAL_OPENs anymore
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/open.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index f5f91f9e11b..901d0db6f51 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2218,13 +2218,6 @@ static NTSTATUS grant_fsp_oplock_type(struct files_struct *fsp, uint32_t granted; NTSTATUS status; - if (oplock_request & INTERNAL_OPEN_ONLY) { - /* No oplocks on internal open. */ - oplock_request = NO_OPLOCK; - DEBUG(10,("grant_fsp_oplock_type: oplock type 0x%x on file %s\n", - fsp->oplock_type, fsp_str_dbg(fsp))); - } - if (oplock_request == LEASE_OPLOCK) { if (lease == NULL) { /* |