Date: Sat, 17 Jul 2010 15:15:21 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 181096 for review Message-ID: <201007171515.o6HFFL0V068308@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@181096?ac=10 Change 181096 by trasz@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007171515.o6HFFL0V068308>