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:
@@ -210,7 +210,7 @@ VMAnonymousCache::Read(off_t offset, const iovec *vecs, size_t count,
|
|||||||
off_t pos = (startPageIndex - swapFile->first_page) * PAGE_SIZE;
|
off_t pos = (startPageIndex - swapFile->first_page) * PAGE_SIZE;
|
||||||
|
|
||||||
status_t status = vfs_read_pages(swapFile->vnode, NULL, pos, vecs + i,
|
status_t status = vfs_read_pages(swapFile->vnode, NULL, pos, vecs + i,
|
||||||
j - i, _numBytes);
|
j - i, 0, _numBytes);
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
return status;
|
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;
|
off_t pos = (pageIndex - swapFile->first_page) * PAGE_SIZE;
|
||||||
|
|
||||||
status_t status = vfs_write_pages(swapFile->vnode, NULL, pos, vecs + i ,
|
status_t status = vfs_write_pages(swapFile->vnode, NULL, pos, vecs + i,
|
||||||
n, _numBytes);
|
n, 0, _numBytes);
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user