summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-13 13:49:20 +0200
committerDavid Disseldorp <ddiss@samba.org>2013-10-24 14:21:52 +0200
commit31ab49f173ddab8b431e3980e78468ab31e3c9bf (patch)
tree91deef3aa797db3de82c1df476b0d08afeeba96d /source3/smbd
parentdfd65f93975716f3398f2b75094267648bd9dd31 (diff)
downloadsamba-31ab49f173ddab8b431e3980e78468ab31e3c9bf.tar.gz
samba-31ab49f173ddab8b431e3980e78468ab31e3c9bf.tar.bz2
samba-31ab49f173ddab8b431e3980e78468ab31e3c9bf.zip
smbd: Use remove_oplock() in close_normal_file
remove_oplock is a wrapper around release_file_oplock. This streamlines the exports of oplock.c a bit. Reason for this patch: In a later patch I will add functionality to remove_oplock that is required in close_normal_file as well. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index f341c72952..6153066018 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -735,7 +735,7 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
/* Remove the oplock before potentially deleting the file. */
if(fsp->oplock_type) {
- release_file_oplock(fsp);
+ remove_oplock(fsp);
}
/* If this is an old DOS or FCB open and we have multiple opens on