PERFORCE change 181096 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sat Jul 17 15:15:22 UTC 2010
http://p4web.freebsd.org/@@181096?ac=10
Change 181096 by trasz at trasz_victim on 2010/07/17 15:15:21
Don't mess with process count in unionfs code; there is no point
in doing this.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/fs/unionfs/union_subr.c#8 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/fs/unionfs/union_subr.c#8 (text+ko) ====
@@ -49,7 +49,6 @@
#include <sys/dirent.h>
#include <sys/fcntl.h>
#include <sys/filedesc.h>
-#include <sys/container.h>
#include <sys/stat.h>
#include <sys/resourcevar.h>
@@ -777,10 +776,6 @@
rootinfo = uifind((uid_t)0);
cred = crdup(cnp->cn_cred);
chgproccnt(cred->cr_ruidinfo, 1, 0);
-#ifdef notyet
- /* XXX: What about the return value? And what's the purpose of this, anyway? */
- rusage_add(RUSAGE_MAXPROCESSES, 1);
-#endif
change_euid(cred, rootinfo);
change_ruid(cred, rootinfo);
change_svuid(cred, (uid_t)0);
@@ -831,9 +826,6 @@
unionfs_mkshadowdir_abort:
cnp->cn_cred = credbk;
chgproccnt(cred->cr_ruidinfo, -1, 0);
-#ifdef notyet
- rusage_sub(RUSAGE_MAXPROCESSES, 1);
-#endif
crfree(cred);
return (error);
More information about the p4-projects
mailing list