HomeFreeBSD

tmpfs: push VEXEC check into tmpfs_lookup()

Description

tmpfs: push VEXEC check into tmpfs_lookup()

vfs_cache_lookup() has already done the appropriate VEXEC check, therefore
we must not re-check in VOP_CACHEDLOOKUP.

This fixes O_SEARCH semantics on tmpfs and removes a redundant descent into
VOP_ACCESS() in the common case.

(cherry picked from commit 0f919ed4ae4df082eefb517afe02752b1790afd3)

Details

Provenance
kevansAuthored on Jan 28 2021, 2:27 PM
Parents
rG3f185aacc58b: Decode NFIT Platform Capabilities.
Branches
Unknown
Tags
Unknown