HomeFreeBSD

Extract tmpfs-specific part of tmpfs_access() into a helper

Description

Extract tmpfs-specific part of tmpfs_access() into a helper

The helper tmpfs_access_locked() requires either the vnode or node
locked for consistency of the access check, unlike the pure vnode op.

Reviewed by: markj, mjg
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D38557

Details

Provenance
kibAuthored on Feb 12 2023, 10:25 PM
Reviewer
markj
Differential Revision
D38557: tmpfs_rename(): fix a locking bug
Parents
rG889f07460151: tmpfs_access(): style fixes and remove redundand assertions
Branches
Unknown
Tags
Unknown