summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/msdosfs_denode.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-03-15 08:07:07 +0000
committerphk <phk@FreeBSD.org>2005-03-15 08:07:07 +0000
commit124bf5e823dfe2ddde94c57660a3beffc2f99b57 (patch)
tree222a537cdd030d8083d8dae9e650ae3be7de0573 /sys/fs/msdosfs/msdosfs_denode.c
parenta7b3bd456408d157545ff8c8ffd7060ae2070886 (diff)
downloadFreeBSD-src-124bf5e823dfe2ddde94c57660a3beffc2f99b57.zip
FreeBSD-src-124bf5e823dfe2ddde94c57660a3beffc2f99b57.tar.gz
Simplify the vfs_hash calling convention.
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_denode.c')
-rw-r--r--sys/fs/msdosfs/msdosfs_denode.c10
1 files changed, 0 insertions, 10 deletions
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);
OpenPOWER on IntegriCloud