aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2003-10-05 06:48:37 +0000
committerJeff Roberson <jeff@FreeBSD.org>2003-10-05 06:48:37 +0000
commit53938b4a8682c72f88bdb149fbd8b964cf44543b (patch)
treea1de2e8814b67cdadb6761647c490c22cdb5ac0f /sys/ufs/ffs
parent1b01fc6ef77273ed600a355b78bc8787dc9275f0 (diff)
downloadsrc-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')
-rw-r--r--sys/ufs/ffs/ffs_snapshot.c3
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);