diff options
author | bde <bde@FreeBSD.org> | 2004-02-13 03:05:12 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-02-13 03:05:12 +0000 |
commit | 5b9992a0bff11b64a43fe188142f1fadaa4faa2b (patch) | |
tree | 1fd7d9e8194850349ac43990e3d4e9f5cc3be5c6 /sys/ufs | |
parent | 5b2e0c4e9c355eab4cb0f1800da61bef03724bb8 (diff) | |
download | FreeBSD-src-5b9992a0bff11b64a43fe188142f1fadaa4faa2b.zip FreeBSD-src-5b9992a0bff11b64a43fe188142f1fadaa4faa2b.tar.gz |
MFextfs: backed out secondary changes in rev.1.40 that had become just
style bugs (a variable that is used only once, and misformattings).
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 6996a93..6486c31 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -572,7 +572,6 @@ ffs_mountfs(devvp, mp, td) int32_t *lp; struct ucred *cred; size_t strsize; - int ncount; dev = devvp->v_rdev; cred = td ? td->td_ucred : NOCRED; @@ -585,9 +584,7 @@ ffs_mountfs(devvp, mp, td) error = vfs_mountedon(devvp); if (error) return (error); - ncount = vcount(devvp); - - if (ncount > 1 && devvp != rootvp) + if (vcount(devvp) > 1 && devvp != rootvp) return (EBUSY); vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td); error = vinvalbuf(devvp, V_SAVE, cred, td, 0, 0); @@ -998,9 +995,7 @@ ffs_unmount(mp, mntflags, td) #else error = VOP_CLOSE(ump->um_devvp, FREAD | FWRITE, NOCRED, td); #endif - vrele(ump->um_devvp); - free(fs->fs_csp, M_UFSMNT); free(fs, M_UFSMNT); free(ump, M_UFSMNT); |