s3: Introduce get_share_mode_lock_fresh()
authorVolker Lendecke <vl@samba.org>
Mon, 9 Jan 2012 13:30:53 +0000 (14:30 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 12 Jan 2012 22:59:22 +0000 (23:59 +0100)
commit9cf6d735d43f6f905b19f52d38c93aa30092333d
treefd75eba7dc698d61b3f8d5ef240c31fef068f28a
parent540e51f77e07cc65b6b097f8ff01cd10f04644d0
s3: Introduce get_share_mode_lock_fresh()

This slightly simplifies the code path for all callers which assume
that a share mode exists already. Only the callers in open_file_ntcreate
and open_directory will ever create new share modes.

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c
source3/locking/proto.h
source3/smbd/close.c
source3/smbd/open.c
source3/smbd/oplock.c
source3/smbd/reply.c
source3/smbd/trans2.c