HomeFreeBSD

vfs: simplify error handling in namei

Description

vfs: simplify error handling in namei

The logic is reorganised so that there is one exit point prior to the
lookup loop. This is an intermediate step to making audit logging
functions use found vnode instead of translating ni_dirfd on their own.

ni_startdir validation is removed. The only in-tree consumer is nfs
which already makes sure it is a directory.

Reviewed by: kib

Details

Provenance
mjgAuthored on
Reviewer
kib
Parents
rS285325: Correct issue presented in r285051,
Branches
Unknown
Tags
Unknown