summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2000-07-12 00:27:27 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2000-07-12 00:27:27 +0000
commitd303f71fdc8e3df22d22b30407040def68111cd5 (patch)
treee19a45b888d0562a7aec138af4ef31d71b2a4763
parent9cca1d3627fa805a428f6f6dd6d0630424de06bb (diff)
Notes
-rw-r--r--sys/ufs/ffs/ffs_snapshot.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c
index 73da537bccdf..d749abecc4b2 100644
--- a/sys/ufs/ffs/ffs_snapshot.c
+++ b/sys/ufs/ffs/ffs_snapshot.c
@@ -135,10 +135,11 @@ restart:
wrtmp = NULL;
if (wrtmp != mp)
panic("ffs_snapshot: mount mismatch");
- if (vn_start_write(wrtmp, V_NOWAIT) != 0) {
+ if (vn_start_write(NULL, &wrtmp, V_NOWAIT) != 0) {
NDFREE(&nd, NDF_ONLY_PNBUF);
vput(nd.ni_dvp);
- if ((error = vn_start_write(wrtmp, V_XSLEEP | PCATCH)) != 0)
+ if ((error = vn_start_write(NULL, &wrtmp,
+ V_XSLEEP | PCATCH)) != 0)
return (error);
goto restart;
}
@@ -257,7 +258,7 @@ restart:
vfs_write_suspend(vp->v_mount);
if (mp->mnt_kern_flag & MNTK_SUSPENDED)
break;
- vn_start_write(wrtmp, V_WAIT);
+ vn_start_write(NULL, &wrtmp, V_WAIT);
}
/*
* First, copy all the cylinder group maps. All the unallocated
@@ -457,7 +458,7 @@ restart:
*/
out1:
vfs_write_resume(vp->v_mount);
- vn_start_write(wrtmp, V_WAIT);
+ vn_start_write(NULL, &wrtmp, V_WAIT);
out:
mp->mnt_flag = flag;
(void) VOP_FSYNC(vp, KERNCRED, MNT_WAIT, p);