Fix style bugs in previous commit.

Submitted by:	bde
This commit is contained in:
kuriyama 2004-02-13 02:02:06 +00:00
parent 60a8eb51bd
commit e8acd43805

View File

@ -488,7 +488,9 @@ ffs_snapshot(mp, snapfile)
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;