diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2002-09-25 02:47:49 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-09-25 02:47:49 +0000 |
| commit | 6ef17634076045c8753dc3415cefa258aee842ab (patch) | |
| tree | 336578d800f6f374d0da80c370cc543415cf7931 /sys | |
| parent | d4820f803683619b5fcaee9cff42b8f5b015cc3b (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index 63dccaccc7eb2..0032f0fbc7f34 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -397,11 +397,10 @@ loop: goto loop; nvp = TAILQ_NEXT(xvp, v_nmntvnodes); mtx_unlock(&mntvnode_mtx); - mtx_lock(&xvp->v_interlock); - if (xvp->v_usecount == 0 || xvp->v_type == VNON || + mp_fixme("Unlocked GETATTR."); + if (vrefcnt(xvp) == 0 || xvp->v_type == VNON || (VOP_GETATTR(xvp, &vat, td->td_proc->p_ucred, td) == 0 && vat.va_nlink > 0)) { - mtx_unlock(&xvp->v_interlock); mtx_lock(&mntvnode_mtx); continue; } |
