Diffs for NetBSD-current 3.99.13
Ty Sarna
tsarna at sarna.org
Sat Jan 21 17:16:11 CET 2006
No changes were necessary for 3.99.12
In .13, ubc_alloc grew an "advice" paramater. Here is a minimal patch:
--- arla-0.41/nnpfs/bsd/nnpfs_vnodeops-netbsd.c.orig 2006-01-20 10:56:42.000000000 -0500
+++ arla-0.41/nnpfs/bsd/nnpfs_vnodeops-netbsd.c 2006-01-02 18:56:10.000000000 -0500
@@ -253,7 +261,11 @@
NNPFSDEB(XDEBVNOPS, ("nnpfs_netbsd_read: allocating window\n"));
win = ubc_alloc(&vp->v_uobj, nnpfs_uio_offset(uio),
- &bytelen, UBC_READ);
+ &bytelen,
+#if __NetBSD_Version__ >= 399001300
+ UVM_ADV_NORMAL, /* advice */
+#endif
+ UBC_READ);
NNPFSDEB(XDEBVNOPS, ("nnpfs_netbsd_read: copy data\n"));
error = uiomove(win, bytelen, uio);
NNPFSDEB(XDEBVNOPS, ("nnpfs_netbsd_read: release window\n"));
@@ -327,6 +339,9 @@
*/
win = ubc_alloc(&vp->v_uobj, nnpfs_uio_offset(uio), &bytelen,
+#if __NetBSD_Version__ >= 399001300
+ UVM_ADV_NORMAL, /* advice */
+#endif
UBC_WRITE);
error = uiomove(win, bytelen, uio);
ubc_release(win, 0);
More information about the Arla-drinkers
mailing list