diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2003-10-05 06:48:37 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2003-10-05 06:48:37 +0000 |
commit | 53938b4a8682c72f88bdb149fbd8b964cf44543b (patch) | |
tree | a1de2e8814b67cdadb6761647c490c22cdb5ac0f /sys/ufs/ffs/ffs_snapshot.c | |
parent | 1b01fc6ef77273ed600a355b78bc8787dc9275f0 (diff) | |
download | src-53938b4a8682c72f88bdb149fbd8b964cf44543b.tar.gz src-53938b4a8682c72f88bdb149fbd8b964cf44543b.zip |
- Skip over xvp if XLOCK is set.
Notes
Notes:
svn path=/head/; revision=120789
Diffstat (limited to 'sys/ufs/ffs/ffs_snapshot.c')
-rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index a4a9fe3cd13e..7d613295140f 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -417,7 +417,8 @@ loop: nvp = TAILQ_NEXT(xvp, v_nmntvnodes); VI_LOCK(xvp); mtx_unlock(&mntvnode_mtx); - if (xvp->v_usecount == 0 || xvp->v_type == VNON || + if ((xvp->v_iflag & VI_XLOCK) || + xvp->v_usecount == 0 || xvp->v_type == VNON || (VTOI(xvp)->i_flags & SF_SNAPSHOT)) { VI_UNLOCK(xvp); mtx_lock(&mntvnode_mtx); |