tmpfs: add root vnode caching

See r353150.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D21646
This commit is contained in:
mjg 2019-10-06 22:17:11 +00:00
parent 5da2d1cb4c
commit e06c1b1bfc

View File

@ -710,7 +710,8 @@ tmpfs_susp_clean(struct mount *mp __unused)
struct vfsops tmpfs_vfsops = {
.vfs_mount = tmpfs_mount,
.vfs_unmount = tmpfs_unmount,
.vfs_root = tmpfs_root,
.vfs_root = vfs_cache_root,
.vfs_cachedroot = tmpfs_root,
.vfs_statfs = tmpfs_statfs,
.vfs_fhtovp = tmpfs_fhtovp,
.vfs_sync = tmpfs_sync,