From 124bf5e823dfe2ddde94c57660a3beffc2f99b57 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 15 Mar 2005 08:07:07 +0000 Subject: Simplify the vfs_hash calling convention. --- sys/fs/msdosfs/msdosfs_denode.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sys/fs/msdosfs/msdosfs_denode.c') diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c index cddcd6c..d582a36 100644 --- a/sys/fs/msdosfs/msdosfs_denode.c +++ b/sys/fs/msdosfs/msdosfs_denode.c @@ -98,7 +98,6 @@ deget(pmp, dirclust, diroffset, depp) struct denode *ldep; struct vnode *nvp, *xvp; struct buf *bp; - struct thread *td = curthread; /* XXX */ hash = DEHASH(dirclust, diroffset); @@ -161,15 +160,6 @@ deget(pmp, dirclust, diroffset, depp) ldep->de_diroffset = diroffset; fc_purge(ldep, 0); /* init the fat cache for this denode */ - /* - * Lock the denode so that it can't be accessed until we've read - * it in and have done what we need to it. Do this here instead - * of at the start of msdosfs_hashins() so that reinsert() can - * call msdosfs_hashins() with a locked denode. - */ - if (VOP_LOCK(nvp, LK_EXCLUSIVE, td) != 0) - panic("deget: unexpected lock failure"); - error = vfs_hash_insert(nvp, hash, 0, curthread, &xvp); if (error) { vput(nvp); -- cgit v1.1