diff options
author | eivind <eivind@FreeBSD.org> | 1999-01-02 01:32:36 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1999-01-02 01:32:36 +0000 |
commit | 9922763a3d37fda0c9babc82546a8b9726fb4cf6 (patch) | |
tree | 1765de7579ee0d7e52c293392f520e61a59354b9 /sys/ufs | |
parent | 7368cdd0db77b88becc851ad29a652c9ec8c8217 (diff) | |
download | FreeBSD-src-9922763a3d37fda0c9babc82546a8b9726fb4cf6.zip FreeBSD-src-9922763a3d37fda0c9babc82546a8b9726fb4cf6.tar.gz |
Remove the last clients of vfs_object_create(..., waslocked=1);
waslocked will go away shortly.
Reviewed by: dg
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 073332d..49e1d37 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95 - * $Id: ffs_vfsops.c,v 1.91 1998/10/27 11:47:08 bde Exp $ + * $Id: ffs_vfsops.c,v 1.92 1998/10/31 15:31:27 peter Exp $ */ #include "opt_quota.h" @@ -459,8 +459,10 @@ ffs_reload(mp, cred, p) * block device. See ffs_mountmfs() for more details. */ if (devvp->v_tag != VT_MFS && devvp->v_type == VBLK) { + vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, p); + vfs_object_create(devvp, p, p->p_ucred, 1); simple_lock(&devvp->v_interlock); - vfs_object_create(devvp, p, p->p_ucred, 0); + VOP_UNLOCK(devvp, LK_INTERLOCK, p); } /* @@ -614,8 +616,10 @@ ffs_mountfs(devvp, mp, p, malloctype) * increases the opportunity for metadata caching. */ if (devvp->v_tag != VT_MFS && devvp->v_type == VBLK) { + vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, p); + vfs_object_create(devvp, p, p->p_ucred, 1); simple_lock(&devvp->v_interlock); - vfs_object_create(devvp, p, p->p_ucred, 0); + VOP_UNLOCK(devvp, LK_INTERLOCK, p); } ronly = (mp->mnt_flag & MNT_RDONLY) != 0; |