diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-04-10 07:36:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:16 -0500 |
commit | b61fac6742a14b252b5a1a415144939f29fba8b9 (patch) | |
tree | 91d9491d30345eebaff6aaaf1ad69d2d217573b7 | |
parent | d442cca230ad27f2dc4b1cf3a33e21593f7d81e5 (diff) | |
download | samba-b61fac6742a14b252b5a1a415144939f29fba8b9.tar.gz samba-b61fac6742a14b252b5a1a415144939f29fba8b9.tar.bz2 samba-b61fac6742a14b252b5a1a415144939f29fba8b9.zip |
r22147: Next try
(This used to be commit 42f42321558ed0647697e5bfd7d5339a29aa30d9)
-rw-r--r-- | source3/modules/vfs_readahead.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_readahead.c b/source3/modules/vfs_readahead.c index 2f4b6e7f74..9c20acebd9 100644 --- a/source3/modules/vfs_readahead.c +++ b/source3/modules/vfs_readahead.c @@ -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, |