1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Use vfs_mountedfrom().

Since VFS_STATFS() always calls the filesystem with mp->mnt_stat now, the
vfs_statfs method is now a no-op.  Explain this in a comment.
This commit is contained in:
Poul-Henning Kamp 2004-12-06 20:52:46 +00:00
parent 37771efde6
commit def91cf267
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138495

View File

@ -269,7 +269,7 @@ pfs_mount(struct pfs_info *pi, struct mount *mp, struct thread *td)
vfs_getnewfsid(mp);
sbp = &mp->mnt_stat;
bcopy(pi->pi_name, sbp->f_mntfromname, sizeof pi->pi_name);
vfs_mountedfrom(mp, pi->pi_name);
sbp->f_bsize = PAGE_SIZE;
sbp->f_iosize = PAGE_SIZE;
sbp->f_blocks = 1;
@ -316,7 +316,7 @@ pfs_root(struct mount *mp, struct vnode **vpp, struct thread *td)
int
pfs_statfs(struct mount *mp, struct statfs *sbp, struct thread *td)
{
bcopy(&mp->mnt_stat, sbp, sizeof *sbp);
/* no-op: always called with mp->mnt_stat */
return (0);
}