zfs_vnops: use zfs_map_page/zfs_unmap_page helper functions in another place

MFC after:	2 weeks
This commit is contained in:
avg 2010-09-21 05:54:36 +00:00
parent f330cb107c
commit 1eb3acf170

View File

@ -510,14 +510,11 @@ again:
dirbytes = 0;
}
if (error == 0) {
sched_pin();
sf = sf_buf_alloc(m, SFB_CPUPRIVATE);
va = (caddr_t)sf_buf_kva(sf);
va = zfs_map_page(m, &sf);
error = dmu_read(os, zp->z_id, start + off,
bytes, (void *)(va + off),
DMU_READ_PREFETCH);
sf_buf_free(sf);
sched_unpin();
zfs_unmap_page(sf);
}
VM_OBJECT_LOCK(obj);
if (error == 0)