diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2004-02-13 02:02:06 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2004-02-13 02:02:06 +0000 |
commit | 5b2e0c4e9c355eab4cb0f1800da61bef03724bb8 (patch) | |
tree | c6f35f6e1c2f4493675fda0ccd34e87fd71b677a /sys/ufs/ffs/ffs_snapshot.c | |
parent | 202bc39d76d51b07f5d4c3e7d3f8e569c540e151 (diff) | |
download | FreeBSD-src-5b2e0c4e9c355eab4cb0f1800da61bef03724bb8.zip FreeBSD-src-5b2e0c4e9c355eab4cb0f1800da61bef03724bb8.tar.gz |
Fix style bugs in previous commit.
Submitted by: bde
Diffstat (limited to 'sys/ufs/ffs/ffs_snapshot.c')
-rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index 9436d1b..c91b492 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -488,7 +488,9 @@ loop: VI_LOCK(devvp); snaphead = &devvp->v_rdev->si_snapshots; if ((xp = TAILQ_FIRST(snaphead)) != NULL) { - struct lock *lkp = ITOV(xp)->v_vnlock; + struct lock *lkp; + + lkp = ITOV(xp)->v_vnlock; VI_UNLOCK(devvp); VI_LOCK(vp); vp->v_vnlock = lkp; @@ -1794,7 +1796,9 @@ ffs_snapshot_mount(mp) */ VI_LOCK(devvp); if ((xp = TAILQ_FIRST(snaphead)) != NULL) { - struct lock *lkp = ITOV(xp)->v_vnlock; + struct lock *lkp; + + lkp = ITOV(xp)->v_vnlock; VI_UNLOCK(devvp); VI_LOCK(vp); vp->v_vnlock = lkp; |