HomeFreeBSD

vfs: deduplicate vnode allocation logic

Description

vfs: deduplicate vnode allocation logic

This creates a dedicated routine (vn_alloc) to allocate vnodes.

As a side effect code duplicationw with getnewvnode_reserve is eleminated.

Add vn_free for symmetry.

Details

Provenance
mjgAuthored on
Parents
rS356643: vfs: prealloc vnodes in getnewvnode_reserve
Branches
Unknown
Tags
Unknown