mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
818631b634
commit
559ac49d41
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue