mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Remove redundant oid parameter to update_pages
The oid comes from the znode we are already passing. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matt Macy <mmacy@FreeBSD.org> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11176
This commit is contained in:
committed by
Brian Behlendorf
parent
eec6646ea9
commit
8a9634e2f3
@@ -465,7 +465,7 @@ page_unhold(vm_page_t pp)
|
||||
* the page and the dmu buffer.
|
||||
*/
|
||||
void
|
||||
update_pages(znode_t *zp, int64_t start, int len, objset_t *os, uint64_t oid)
|
||||
update_pages(znode_t *zp, int64_t start, int len, objset_t *os)
|
||||
{
|
||||
vm_object_t obj;
|
||||
struct sf_buf *sf;
|
||||
@@ -490,8 +490,8 @@ update_pages(znode_t *zp, int64_t start, int len, objset_t *os, uint64_t oid)
|
||||
zfs_vmobject_wunlock_12(obj);
|
||||
|
||||
va = zfs_map_page(pp, &sf);
|
||||
(void) dmu_read(os, oid, start+off, nbytes,
|
||||
va+off, DMU_READ_PREFETCH);
|
||||
(void) dmu_read(os, zp->z_id, start + off, nbytes,
|
||||
va + off, DMU_READ_PREFETCH);
|
||||
zfs_unmap_page(sf);
|
||||
|
||||
zfs_vmobject_wlock_12(obj);
|
||||
|
||||
Reference in New Issue
Block a user