HomeFreeBSD

If BENEATH is specified, always latch the topping directory vnode.

Description

If BENEATH is specified, always latch the topping directory vnode.

It is possible that we started with a relative path but during the
lookup, found an absolute symlink. In this case, BENEATH handling
code needs the latch, but it is too late to calculate it.

While there, somewhat improve the assertions. Clear the NI_LCF_LATCH
flag when the latch vnode is released, so that asserts know the state.
Assert that there is a latch if we entered beneath+abs path mode,
after the starting point is processed.

Reported by: wulf
With more input from: pho
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on
Parents
rS341255: arm64: rockchip: armclk: Do not change parent freq if CLK_SET_DRYRUN is set
Branches
Unknown
Tags
Unknown