From cc2da706884996cbe3a23cdff9d776eae1ee7caf Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 30 Jul 2008 23:55:30 +0000 Subject: [PATCH] vfs_{read,write}_pages() have an additional parameter now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26693 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/VMAnonymousCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/kernel/vm/VMAnonymousCache.cpp b/src/system/kernel/vm/VMAnonymousCache.cpp index 4a902da2d5..d90901c27b 100644 --- a/src/system/kernel/vm/VMAnonymousCache.cpp +++ b/src/system/kernel/vm/VMAnonymousCache.cpp @@ -210,7 +210,7 @@ VMAnonymousCache::Read(off_t offset, const iovec *vecs, size_t count, off_t pos = (startPageIndex - swapFile->first_page) * PAGE_SIZE; status_t status = vfs_read_pages(swapFile->vnode, NULL, pos, vecs + i, - j - i, _numBytes); + j - i, 0, _numBytes); if (status != B_OK) return status; } @@ -245,8 +245,8 @@ VMAnonymousCache::Write(off_t offset, const iovec *vecs, size_t count, off_t pos = (pageIndex - swapFile->first_page) * PAGE_SIZE; - status_t status = vfs_write_pages(swapFile->vnode, NULL, pos, vecs + i , - n, _numBytes); + status_t status = vfs_write_pages(swapFile->vnode, NULL, pos, vecs + i, + n, 0, _numBytes); if (status != B_OK) return status; }