Remove superfluous VOP_UNLOCK(), vnode will be unlocked from spec_reclaim().

This commit is contained in:
hannken 2019-02-20 10:03:55 +00:00
parent b783399854
commit 836873044c
1 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mfs_vnops.c,v 1.58 2017/05/26 14:21:02 riastradh Exp $ */
/* $NetBSD: mfs_vnops.c,v 1.59 2019/02/20 10:03:55 hannken Exp $ */
/*
* Copyright (c) 1989, 1993
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mfs_vnops.c,v 1.58 2017/05/26 14:21:02 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: mfs_vnops.c,v 1.59 2019/02/20 10:03:55 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -297,8 +297,6 @@ mfs_reclaim(void *v)
struct mfsnode *mfsp = VTOMFS(vp);
int refcnt;
VOP_UNLOCK(vp);
mutex_enter(&mfs_lock);
vp->v_data = NULL;
refcnt = --mfsp->mfs_refcnt;