smbd: Avoid an if-statement per read/write in the non-clustered case
authorVolker Lendecke <vl@samba.org>
Wed, 11 Sep 2013 10:17:05 +0000 (10:17 +0000)
committerStefan Metzmacher <metze@samba.org>
Sun, 6 Oct 2013 18:16:00 +0000 (20:16 +0200)
commit2b3c5bea1c1512bc250481690b2d968491738629
treee49641493d9e4914d6956cee3432e2d33477e8f8
parentf650bb94c8b79bec87c2a1f17b573c27e0ef1b1b
smbd: Avoid an if-statement per read/write in the non-clustered case

Without clustering, fsp->brlock_rec will never be set anyway. In the
clustering case we can't use the seqnum trick, so this is slow enough
that the additional if-statement does not matter in this case anyway. In
the non-clustered case it might. Have not measured it, but every little
bit helps I guess.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/locking/brlock.c