devfs: add root vnode caching
See r353150. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21646
This commit is contained in:
parent
56aaa07b37
commit
5da2d1cb4c
@ -156,6 +156,7 @@ devfs_mount(struct mount *mp)
|
||||
}
|
||||
|
||||
VOP_UNLOCK(rvp, 0);
|
||||
vfs_cache_root_set(mp, rvp);
|
||||
|
||||
vfs_mountedfrom(mp, "devfs");
|
||||
|
||||
@ -237,7 +238,8 @@ devfs_statfs(struct mount *mp, struct statfs *sbp)
|
||||
|
||||
static struct vfsops devfs_vfsops = {
|
||||
.vfs_mount = devfs_mount,
|
||||
.vfs_root = devfs_root,
|
||||
.vfs_root = vfs_cache_root,
|
||||
.vfs_cachedroot = devfs_root,
|
||||
.vfs_statfs = devfs_statfs,
|
||||
.vfs_unmount = devfs_unmount,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user