diff options
author | Volker Lendecke <vl@samba.org> | 2012-01-09 14:30:53 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-01-12 23:59:22 +0100 |
commit | 9cf6d735d43f6f905b19f52d38c93aa30092333d (patch) | |
tree | fd75eba7dc698d61b3f8d5ef240c31fef068f28a /source3/smbd/trans2.c | |
parent | 540e51f77e07cc65b6b097f8ff01cd10f04644d0 (diff) | |
download | samba-9cf6d735d43f6f905b19f52d38c93aa30092333d.tar.gz samba-9cf6d735d43f6f905b19f52d38c93aa30092333d.tar.bz2 samba-9cf6d735d43f6f905b19f52d38c93aa30092333d.zip |
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>
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index ec9901b99e..4e86fbfcdd 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -7572,8 +7572,7 @@ static NTSTATUS smb_posix_unlink(connection_struct *conn, * non-POSIX opens return SHARING_VIOLATION. */ - lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL, - NULL); + lck = get_share_mode_lock(talloc_tos(), fsp->file_id); if (lck == NULL) { DEBUG(0, ("smb_posix_unlink: Could not get share mode " "lock for file %s\n", fsp_str_dbg(fsp))); |