PERFORCE change 169385 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Oct 11 10:41:00 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=169385
Change 169385 by trasz at 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);
More information about the p4-projects
mailing list