Use vfs_mountedfrom() and rely on vfs_mount.c to call VFS_STATFS()
This commit is contained in:
parent
40bf35ba61
commit
463e576c38
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user