1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r22147: Next try

This commit is contained in:
Volker Lendecke
2007-04-10 07:36:58 +00:00
committed by Gerald (Jerry) Carter
parent 825255c760
commit 42f4232155

View File

@ -101,7 +101,7 @@ static ssize_t readahead_pread(vfs_handle_struct *handle,
(unsigned int)rhd->len,
err ));
#elif defined(HAVE_POSIX_FADVISE)
int err = posix_fadvise(fromfd, offset, (off_t)rhd->len, POSIX_FADV_WILLNEED);
int err = posix_fadvise(fd, offset, (off_t)rhd->len, POSIX_FADV_WILLNEED);
DEBUG(10,("readahead_pread: posix_fadvise on fd %u, offset %llu, len %u returned %d\n",
(unsigned int)fd,
(unsigned long long)offset,