HomeFreeBSD

tmpfs_free_tmp(): explicitly assert that tmp is locked

Description

tmpfs_free_tmp(): explicitly assert that tmp is locked

Despite TMPFS_UNLOCK() is done in both paths later, unlocking not locked
mutex provides different failure mode.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on Jan 5 2021, 6:53 PM
Parents
rG42bebbda9ed1: tmpfs: make M_TMPFSMNT static to tmpfs_vfsops.c
Branches
Unknown
Tags
Unknown