summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/msdosfs_denode.c
diff options
context:
space:
mode:
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