diff options
author | Michael Adam <obnox@samba.org> | 2008-01-07 21:47:53 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-07 21:47:56 +0100 |
commit | 26169410cd3fa90be5740a913f027802488eca8d (patch) | |
tree | c23d9767719a9048f31c81068a0ccf57988e7099 /source3/smbd | |
parent | fa6d7b42f1c85004a7c7ece4822277e8e23f32f5 (diff) | |
download | samba-26169410cd3fa90be5740a913f027802488eca8d.tar.gz samba-26169410cd3fa90be5740a913f027802488eca8d.tar.bz2 samba-26169410cd3fa90be5740a913f027802488eca8d.zip |
Remove redundant parameter fd from SMB_VFS_LINUX_SETLEASE().
Michael
(This used to be commit 8880eb82f16d561a4023ec8426f8ea35c579a7a6)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/oplock_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c index 086f105b89..05021b6c74 100644 --- a/source3/smbd/oplock_linux.c +++ b/source3/smbd/oplock_linux.c @@ -164,7 +164,7 @@ static files_struct *linux_oplock_receive_message(fd_set *fds) static bool linux_set_kernel_oplock(files_struct *fsp, int oplock_type) { - if ( SMB_VFS_LINUX_SETLEASE(fsp,fsp->fh->fd, F_WRLCK) == -1) { + if ( SMB_VFS_LINUX_SETLEASE(fsp, F_WRLCK) == -1) { DEBUG(3,("linux_set_kernel_oplock: Refused oplock on file %s, " "fd = %d, file_id = %s. (%s)\n", fsp->fsp_name, fsp->fh->fd, @@ -202,7 +202,7 @@ static void linux_release_kernel_oplock(files_struct *fsp) /* * Remove the kernel oplock on this file. */ - if ( SMB_VFS_LINUX_SETLEASE(fsp,fsp->fh->fd, F_UNLCK) == -1) { + if ( SMB_VFS_LINUX_SETLEASE(fsp, F_UNLCK) == -1) { if (DEBUGLVL(0)) { dbgtext("linux_release_kernel_oplock: Error when " "removing kernel oplock on file " ); |