Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Oct 2009 10:40:59 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 169385 for review
Message-ID:  <200910111040.n9BAexEi003507@repoman.freebsd.org>

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

Change 169385 by trasz@trasz_victim on 2009/10/11 10:40:24

	Get rid of unused routines.

Affected files ...

.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_resource.c#25 edit
.. //depot/projects/soc2009/trasz_limits/sys/sys/resourcevar.h#12 edit

Differences ...

==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_resource.c#25 (text+ko) ====

@@ -1327,23 +1327,6 @@
 	return (uip);
 }
 
-struct uidinfo *
-uifind_existing(uid)
-	uid_t uid;
-{
-	struct uidinfo *uip;
-
-	rw_rlock(&uihashtbl_lock);
-	uip = uilookup(uid);
-	if (uip == NULL) {
-		rw_unlock(&uihashtbl_lock);
-		return (NULL);
-	}
-	uihold(uip);
-	rw_unlock(&uihashtbl_lock);
-	return (uip);
-}
-
 /*
  * Place another refcount on a uidinfo struct.
  */
@@ -1507,23 +1490,6 @@
 	return (gip);
 }
 
-struct gidinfo *
-gifind_existing(gid)
-	gid_t gid;
-{
-	struct gidinfo *gip;
-
-	rw_rlock(&gihashtbl_lock);
-	gip = gilookup(gid);
-	if (gip == NULL) {
-		rw_unlock(&gihashtbl_lock);
-		return (NULL);
-	}
-	gihold(gip);
-	rw_unlock(&gihashtbl_lock);
-	return (gip);
-}
-
 /*
  * Place another refcount on a gidinfo struct.
  */

==== //depot/projects/soc2009/trasz_limits/sys/sys/resourcevar.h#12 (text+ko) ====

@@ -154,8 +154,6 @@
 int	 suswintr(void *base, int word);
 struct uidinfo
 	*uifind(uid_t uid);
-struct uidinfo
-	*uifind_existing(uid_t uid);
 void	 uifree(struct uidinfo *uip);
 void	 uihashinit(void);
 void	 uihold(struct uidinfo *uip);
@@ -164,8 +162,6 @@
 	    const struct hrl_rule *filter, void *arg3);
 struct gidinfo
 	*gifind(gid_t gid);
-struct gidinfo
-	*gifind_existing(gid_t gid);
 void	 gifree(struct gidinfo *gip);
 void	 gihashinit(void);
 void	 gihold(struct gidinfo *gip);



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