smbd: Reduce the complexity of open_file_ntcreate
authorVolker Lendecke <vl@samba.org>
Mon, 2 Sep 2013 12:25:07 +0000 (12:25 +0000)
committerMichael Adam <obnox@samba.org>
Tue, 15 Oct 2013 22:33:47 +0000 (00:33 +0200)
commit00d84ad1928a07bc892e8a37d53e7c35b8628b7f
tree13bf2a0a130931ff9cb4233030dee695620147a8
parentc938a1065fed2a001da69b6a6d826ef31be75003
smbd: Reduce the complexity of open_file_ntcreate

This removes two variables in open_file_ntcreate based on the observation
that for exclusive and batch oplocks there can only be one entry. So
in these cases we don't need to keep pointers from find_oplock_types to
delay_for_oplocks. We can just reference the only share mode entry around.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/open.c