summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_cacheprime.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-11 00:51:19 +0100
committerMichael Adam <obnox@samba.org>2008-01-11 01:27:05 +0100
commit4caab9ca25e1163378714de825d835e79e27dd4f (patch)
tree9a7b06f3756a9f4c0ae45c13dbad7d13929a7e5f /source3/modules/vfs_cacheprime.c
parent13785d5c62093540139094f6dfcf808100790939 (diff)
downloadsamba-4caab9ca25e1163378714de825d835e79e27dd4f.tar.gz
samba-4caab9ca25e1163378714de825d835e79e27dd4f.tar.bz2
samba-4caab9ca25e1163378714de825d835e79e27dd4f.zip
Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().
Michael (This used to be commit a52cfb7d777157c93c9dc26c67f457be592dd537)
Diffstat (limited to 'source3/modules/vfs_cacheprime.c')
-rw-r--r--source3/modules/vfs_cacheprime.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c
index 5675108f1e..15c8167a07 100644
--- a/source3/modules/vfs_cacheprime.c
+++ b/source3/modules/vfs_cacheprime.c
@@ -125,17 +125,16 @@ static int cprime_connect(
static ssize_t cprime_sendfile(
struct vfs_handle_struct * handle,
int tofd,
- files_struct * fsp,
- int fromfd,
+ files_struct * fromfsp,
const DATA_BLOB * header,
SMB_OFF_T offset,
size_t count)
{
if (g_readbuf && offset == 0) {
- prime_cache(handle, fsp, fromfd, offset, count);
+ prime_cache(handle, fromfsp, fromfsp->fh->fd, offset, count);
}
- return SMB_VFS_NEXT_SENDFILE(handle, tofd, fsp, fromfd,
+ return SMB_VFS_NEXT_SENDFILE(handle, tofd, fromfsp,
header, offset, count);
}