PERFORCE change 113284 for review

Todd Miller millert at FreeBSD.org
Sun Jan 21 22:40:28 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113284

Change 113284 by millert at millert_macbook on 2007/01/21 22:34:52

	Use vfs_context_ucred()

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vm/dp_backing_file.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vm/dp_backing_file.c#6 (text+ko) ====

@@ -220,7 +220,7 @@
 		goto swapon_bailout;
 #ifdef MAC
 	vnode_lock(vp);
-	error = mac_system_check_swapon(p->p_ucred, vp);
+	error = mac_system_check_swapon(vfs_context_ucred(&context), vp);
 	vnode_unlock(vp);
 	if (error)
 		goto swapon_bailout;
@@ -361,7 +361,7 @@
 	}
 #ifdef MAC
 	vnode_lock(vp);
-	error = mac_system_check_swapoff(p->p_ucred, vp);
+	error = mac_system_check_swapoff(vfs_context_ucred(&context), vp);
 	vnode_unlock(vp);
 	if (error)
 		goto swapoff_bailout;


More information about the trustedbsd-cvs mailing list