From 463e576c387bd3ccc95ed6e162a842ecf828e7e2 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 6 Dec 2004 19:54:31 +0000 Subject: [PATCH] Use vfs_mountedfrom() and rely on vfs_mount.c to call VFS_STATFS() --- sys/fs/devfs/devfs_vfsops.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index 35156d6a079e..2173398a4431 100644 --- a/sys/fs/devfs/devfs_vfsops.c +++ b/sys/fs/devfs/devfs_vfsops.c @@ -102,11 +102,10 @@ devfs_mount(struct mount *mp, struct thread *td) FREE(fmp, M_DEVFS); return (error); } + VOP_UNLOCK(rvp, 0, td); - bzero(mp->mnt_stat.f_mntfromname, MNAMELEN); - bcopy("devfs", mp->mnt_stat.f_mntfromname, sizeof("devfs")); - (void)devfs_statfs(mp, &mp->mnt_stat, td); + vfs_mountedfrom(mp, "devfs"); return (0); }