summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs/null_vfsops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-05 22:41:02 +0000
committerphk <phk@FreeBSD.org>2004-12-05 22:41:02 +0000
commit6c14f71ef7197ba00d32563670ba895b74e646a2 (patch)
tree456f27e8cc68e4b4148ad4488fade6e1454b7acc /sys/fs/nullfs/null_vfsops.c
parent8b42e21d12e627514808f983d93b02293eaab637 (diff)
downloadFreeBSD-src-6c14f71ef7197ba00d32563670ba895b74e646a2.zip
FreeBSD-src-6c14f71ef7197ba00d32563670ba895b74e646a2.tar.gz
VFS_STATFS(mp, ...) is mostly called with &mp->mnt_stat, but a few cases
doesn't. Most of the implementations have grown weeds for this so they copy some fields from mnt_stat if the passed argument isn't that. Fix this the cleaner way: Always call the implementation on mnt_stat and copy that in toto to the VFS_STATFS argument if different.
Diffstat (limited to 'sys/fs/nullfs/null_vfsops.c')
-rw-r--r--sys/fs/nullfs/null_vfsops.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 6a39dc0..fc8967a 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -295,11 +295,6 @@ nullfs_statfs(mp, sbp, td)
sbp->f_bavail = mstat.f_bavail;
sbp->f_files = mstat.f_files;
sbp->f_ffree = mstat.f_ffree;
- if (sbp != &mp->mnt_stat) {
- bcopy(&mp->mnt_stat.f_fsid, &sbp->f_fsid, sizeof(sbp->f_fsid));
- bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN);
- bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN);
- }
return (0);
}
OpenPOWER on IntegriCloud