svn commit: r212950 -
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Tue Sep 21 05:54:37 UTC 2010
Author: avg
Date: Tue Sep 21 05:54:36 2010
New Revision: 212950
URL: http://svn.freebsd.org/changeset/base/212950
Log:
zfs_vnops: use zfs_map_page/zfs_unmap_page helper functions in another place
MFC after: 2 weeks
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Tue Sep 21 05:36:30 2010 (r212949)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Tue Sep 21 05:54:36 2010 (r212950)
@@ -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)
More information about the svn-src-all
mailing list