From b61fac6742a14b252b5a1a415144939f29fba8b9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 10 Apr 2007 07:36:58 +0000 Subject: r22147: Next try (This used to be commit 42f42321558ed0647697e5bfd7d5339a29aa30d9) --- source3/modules/vfs_readahead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit