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
This commit is contained in:
Ingo Weinhold
2008-07-30 23:55:30 +00:00
parent 7f12cc54a7
commit cc2da70688
+3 -3
View File
@@ -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;
}