Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106030683
D4683.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
874 B
Referenced Files
None
Subscribers
None
D4683.diff
View Options
Index: head/sys/kern/kern_resource.c
===================================================================
--- head/sys/kern/kern_resource.c
+++ head/sys/kern/kern_resource.c
@@ -80,8 +80,6 @@
static struct uidinfo *uilookup(uid_t uid);
static void ruxagg_locked(struct rusage_ext *rux, struct thread *td);
-static __inline int lim_shared(struct plimit *limp);
-
/*
* Resource controls and accounting.
*/
@@ -1109,13 +1107,6 @@
return (limp);
}
-static __inline int
-lim_shared(struct plimit *limp)
-{
-
- return (limp->pl_refcnt > 1);
-}
-
void
lim_fork(struct proc *p1, struct proc *p2)
{
@@ -1146,7 +1137,7 @@
lim_copy(struct plimit *dst, struct plimit *src)
{
- KASSERT(!lim_shared(dst), ("lim_copy to shared limit"));
+ KASSERT(dst->pl_refcnt <= 1, ("lim_copy to shared limit"));
bcopy(src->pl_rlimit, dst->pl_rlimit, sizeof(src->pl_rlimit));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 4:23 AM (8 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15594317
Default Alt Text
D4683.diff (874 B)
Attached To
Mode
D4683: sys/kern/kern_resource.c: fold lim_shared into lim_copy to mute -Wunused compiler warnings from clang with !INVARIANTS
Attached
Detach File
Event Timeline
Log In to Comment