Diffs for NetBSD-current 3.99.13

Ty Sarna <[email protected]>
Newsgroups gmane.comp.file-systems.arla.general
Message-ID <[email protected]>
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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.