Use vfs_mountedfrom() and rely on vfs_mount.c to call VFS_STATFS()

This commit is contained in:
phk 2004-12-06 19:54:31 +00:00
parent 40bf35ba61
commit 463e576c38

View File

@ -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);
}