HomeFreeBSD

vfs_lookup(): Minor performance optimizations

Description

vfs_lookup(): Minor performance optimizations

Refactor the symlink and mountpoint traversal logic to avoid
repeatedly checking the vnode type; a symlink cannot be a mountpoint
and vice versa. Avoid repeatedly checking cn_flags for NOCROSSMOUNT
and simplify the check which determines whether the vnode is a
mountpoint.

Suggested by: mjg
Reviewed by: kib
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D35054

Details

Provenance
jahAuthored on Oct 20 2022, 3:33 AM
Reviewer
kib
Differential Revision
D35054: Add VV_CROSSLOCK vnode flag to avoid cross-mount lookup LOR
Parents
rG4390622c8d16: vfs_busy(): fix wording in comment
Branches
Unknown
Tags
Unknown