HomeFreeBSD

filedesc: iterate over fd table only once in fdcopy

Description

filedesc: iterate over fd table only once in fdcopy

While here add 'fdused_init' which does not perform unnecessary work.

Drop FILEDESC_LOCK_ASSERT from fdisused and rely on callers to hold
it when appropriate. This function is only used with INVARIANTS.

No functional changes intended.

Details

Provenance
mjgAuthored on
Parents
rS273893: filedesc: tidy up fdfree
Branches
Unknown
Tags
Unknown

Event Timeline