svn commit: r353152 - head/sys/fs/devfs
Mateusz Guzik
mjg at FreeBSD.org
Sun Oct 6 22:16:55 UTC 2019
Author: mjg
Date: Sun Oct 6 22:16:55 2019
New Revision: 353152
URL: https://svnweb.freebsd.org/changeset/base/353152
Log:
devfs: add root vnode caching
See r353150.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21646
Modified:
head/sys/fs/devfs/devfs_vfsops.c
Modified: head/sys/fs/devfs/devfs_vfsops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vfsops.c Sun Oct 6 22:16:00 2019 (r353151)
+++ head/sys/fs/devfs/devfs_vfsops.c Sun Oct 6 22:16:55 2019 (r353152)
@@ -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,
};
More information about the svn-src-all
mailing list