This is an alternative solution to recycle the nullfs vnodes not in use.
- New sysctl OID
- vfs.nullfs.cache_nodes If true (default), a newly mounted nullfs filesystem caches its vnodes after finishing their uses. (0 == v_usecount) If false, a newly mounted nullfs filesystem recycles its vnodes immediately upon finishing their uses. The configuration affects the vnodes in the newly mounted nullfs filesystems only. The vnodes in the nullfs filesystems already mounted are not affected. (NB nullfs does not support updating the mount options.)
Based on: https://reviews.freebsd.org/D44177
Security: FreeBSD-EN-23:18.openzfs
Signed-off-by: Seigo Tanimura <seigo.tanimura@gmail.com>