HomeFreeBSD

vfs: prealloc vnodes in getnewvnode_reserve

Description

vfs: prealloc vnodes in getnewvnode_reserve

Having a reserved vnode count does not guarantee that getnewvnodes wont
block later. Said blocking partially defeats the purpose of reserving in
the first place.

Preallocate instaed. The only consumer was always passing "1" as count
and never nesting reservations.

Details

Provenance
mjgAuthored on
Parents
rS356642: vfs: incomplete pass at converting more ints to u_long
Branches
Unknown
Tags
Unknown