HomeFreeBSD

fix unsafe modification of zfs_vnodeops when DIAGNOSTIC is enabled

Description

fix unsafe modification of zfs_vnodeops when DIAGNOSTIC is enabled

The idea was to avoid a false assertion in zfs_lock, but it was
implemented very dangerously and incorrectly.

Reported by: pho
Tested by: pho
MFC after: 1 week

Details

Provenance
avgAuthored on
Parents
rS308886: MFC r307755: swapoff: Remove only late devices with -aL.
Branches
Unknown
Tags
Unknown