diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-19 14:23:56 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-02-19 17:44:26 +0100 |
commit | e5c84840737692b6c445e4ed316d869f6d0394bf (patch) | |
tree | 8f891a860d0736a0686b1e76cc13cb36db4bf8e1 /source3/smbd/oplock.c | |
parent | da84242f5b91858b0df9ace9c565dd2a53d4998a (diff) | |
download | samba-e5c84840737692b6c445e4ed316d869f6d0394bf.tar.gz samba-e5c84840737692b6c445e4ed316d869f6d0394bf.tar.bz2 samba-e5c84840737692b6c445e4ed316d869f6d0394bf.zip |
s3: get_share_mode_lock->get_existing_share_mode_lock
Diffstat (limited to 'source3/smbd/oplock.c')
-rw-r--r-- | source3/smbd/oplock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index 0c4155d9d6..f760171c3a 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -162,7 +162,7 @@ bool remove_oplock(files_struct *fsp) struct share_mode_lock *lck; /* Remove the oplock flag from the sharemode. */ - lck = get_share_mode_lock(talloc_tos(), fsp->file_id); + lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id); if (lck == NULL) { DEBUG(0,("remove_oplock: failed to lock share entry for " "file %s\n", fsp_str_dbg(fsp))); @@ -188,7 +188,7 @@ bool downgrade_oplock(files_struct *fsp) bool ret; struct share_mode_lock *lck; - lck = get_share_mode_lock(talloc_tos(), fsp->file_id); + lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id); if (lck == NULL) { DEBUG(0,("downgrade_oplock: failed to lock share entry for " "file %s\n", fsp_str_dbg(fsp))); @@ -804,7 +804,7 @@ static void do_break_to_none(struct tevent_req *req) DEBUG(1, ("tevent_wakeup_recv failed\n")); goto done; } - lck = get_share_mode_lock(talloc_tos(), state->id); + lck = get_existing_share_mode_lock(talloc_tos(), state->id); if (lck == NULL) { DEBUG(1, ("release_level_2_oplocks_on_change: failed to lock " "share mode entry for file %s.\n", |