From 6c14f71ef7197ba00d32563670ba895b74e646a2 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 5 Dec 2004 22:41:02 +0000 Subject: 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. --- sys/fs/ntfs/ntfs_vfsops.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sys/fs/ntfs') diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c index e8b8599..bcd9a48 100644 --- a/sys/fs/ntfs/ntfs_vfsops.c +++ b/sys/fs/ntfs/ntfs_vfsops.c @@ -565,12 +565,6 @@ ntfs_statfs( sbp->f_ffree = sbp->f_bfree / ntmp->ntm_bpmftrec; sbp->f_files = mftallocated / ntfs_bntob(ntmp->ntm_bpmftrec) + sbp->f_ffree; - if (sbp != &mp->mnt_stat) { - bcopy((caddr_t)mp->mnt_stat.f_mntonname, - (caddr_t)&sbp->f_mntonname[0], MNAMELEN); - bcopy((caddr_t)mp->mnt_stat.f_mntfromname, - (caddr_t)&sbp->f_mntfromname[0], MNAMELEN); - } sbp->f_flags = mp->mnt_flag; return (0); -- cgit v1.1