HomeFreeBSD

Use crhold() instead of crdup(). The md(4) driver doesn't modify the ucred

Description

Use crhold() instead of crdup(). The md(4) driver doesn't modify the ucred
that it uses, so it merely needs to bump its refcount to make it immutable
rather than obtain its own copy.

Details

Provenance
jhbAuthored on Oct 9 2001, 4:37 PM
Parents
rG3ff9006c7181: Remove greatly outdated comment that systat(1) takes 2-10% of the CPU time.
Branches
Unknown
Tags
Unknown

Event Timeline