Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2005 15:45:00 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 84060 for review
Message-ID:  <200509211545.j8LFj0O2087754@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=84060

Change 84060 by rwatson@rwatson_zoo on 2005/09/21 15:44:25

	Spot integrate of accounting bug fix from FreeBSD CVS into TrustedBSD
	base, as this bug fix is required to pass the audit3 regression test
	suite.

Affected files ...

.. //depot/projects/trustedbsd/base/sys/kern/kern_acct.c#24 integrate

Differences ...

==== //depot/projects/trustedbsd/base/sys/kern/kern_acct.c#24 (text+ko) ====

@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/sys/kern/kern_acct.c,v 1.74 2005/03/01 08:56:13 rwatson Exp $");
+__FBSDID("$FreeBSD: src/sys/kern/kern_acct.c,v 1.75 2005/09/21 15:28:07 rwatson Exp $");
 
 #include "opt_mac.h"
 
@@ -400,7 +400,7 @@
 			mtx_unlock(&acct_mtx);
 			return;
 		}
-		(void)VFS_STATFS(savacctp->v_mount, &sb, (struct thread *)0);
+		(void)VFS_STATFS(savacctp->v_mount, &sb, curthread);
 		if (sb.f_bavail > acctresume * sb.f_blocks / 100) {
 			acctp = savacctp;
 			acctcred = savacctcred;
@@ -422,7 +422,7 @@
 			mtx_unlock(&acct_mtx);
 			return;
 		}
-		(void)VFS_STATFS(acctp->v_mount, &sb, (struct thread *)0);
+		(void)VFS_STATFS(acctp->v_mount, &sb, curthread);
 		if (sb.f_bavail <= acctsuspend * sb.f_blocks / 100) {
 			savacctp = acctp;
 			savacctflags = acctflags;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509211545.j8LFj0O2087754>