summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-15 14:38:16 +0000
committerjeff <jeff@FreeBSD.org>2005-03-15 14:38:16 +0000
commitd289cc6b5d146ab20a01f7ed37ce664f92f49af4 (patch)
treeef88f5f3c65023b005f083d4253cf9199ddcf7f3 /lib/libc/stdlib/rand.c
parent2116975c84fba0dc998eb4299ecc0a821b5285ba (diff)
downloadFreeBSD-src-d289cc6b5d146ab20a01f7ed37ce664f92f49af4.zip
FreeBSD-src-d289cc6b5d146ab20a01f7ed37ce664f92f49af4.tar.gz
- Now that there are no external users of vfree() make it static.
- Move VSHOULDBUSY, VSHOULDFREE, and VTRYRECYCLE into vfs_subr.c so no one else attempts to grow a dependency on them. - Now that objects with pages hold the vnode we don't have to do unlocked checks for the page count in the vm object in VSHOULDFREE. These three macros could simply check for holdcnt state transitions to determine whether the vnode is on the free list already, but the extra safety the flag affords us is probably worth the minimal cost. - The leafonly sysctl and code have been dead for several years now, remove the sysctl and the code that employed it from vtryrecycle(). - vtryrecycle() also no longer has to check the object's page count as the object holds the vnode until it reaches 0. Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'lib/libc/stdlib/rand.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud