Adapt for VOP_FSYNC parameter change.
This commit is contained in:
parent
a6a5e6cca7
commit
db4108490a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: genfs_vnops.c,v 1.19 2000/08/03 20:41:27 thorpej Exp $ */
|
||||
/* $NetBSD: genfs_vnops.c,v 1.20 2000/09/19 22:01:59 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -79,6 +79,8 @@ genfs_fsync(v)
|
|||
struct vnode *a_vp;
|
||||
struct ucred *a_cred;
|
||||
int a_flags;
|
||||
off_t offlo;
|
||||
off_t offhi;
|
||||
struct proc *a_p;
|
||||
} */ *ap = v;
|
||||
struct vnode *vp = ap->a_vp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: layer_vnops.c,v 1.3 2000/03/30 12:22:14 augustss Exp $ */
|
||||
/* $NetBSD: layer_vnops.c,v 1.4 2000/09/19 22:01:59 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 National Aeronautics & Space Administration
|
||||
|
@ -71,7 +71,7 @@
|
|||
*
|
||||
* Ancestors:
|
||||
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
|
||||
* $Id: layer_vnops.c,v 1.3 2000/03/30 12:22:14 augustss Exp $
|
||||
* $Id: layer_vnops.c,v 1.4 2000/09/19 22:01:59 fvdl Exp $
|
||||
* ...and...
|
||||
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
|
||||
*/
|
||||
|
@ -716,6 +716,8 @@ layer_fsync(v)
|
|||
struct vnode *a_vp;
|
||||
struct ucred *a_cred;
|
||||
int a_flags;
|
||||
off_t offlo;
|
||||
off_t offhi;
|
||||
struct proc *a_p;
|
||||
} */ *ap = v;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: spec_vnops.c,v 1.49 2000/07/22 15:26:14 jdolecek Exp $ */
|
||||
/* $NetBSD: spec_vnops.c,v 1.50 2000/09/19 22:01:59 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -484,6 +484,8 @@ spec_fsync(v)
|
|||
struct vnode *a_vp;
|
||||
struct ucred *a_cred;
|
||||
int a_flags;
|
||||
off_t offlo;
|
||||
off_t offhi;
|
||||
struct proc *a_p;
|
||||
} */ *ap = v;
|
||||
struct vnode *vp = ap->a_vp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sync_subr.c,v 1.5 2000/08/20 21:50:11 thorpej Exp $ */
|
||||
/* $NetBSD: sync_subr.c,v 1.6 2000/09/19 22:01:59 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Marshall Kirk McKusick. All Rights Reserved.
|
||||
|
@ -183,7 +183,7 @@ sched_sync(v)
|
|||
if (VOP_ISLOCKED(vp) == 0) {
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
|
||||
(void) VOP_FSYNC(vp, curproc->p_ucred,
|
||||
FSYNC_LAZY, curproc);
|
||||
FSYNC_LAZY, 0, 0, curproc);
|
||||
VOP_UNLOCK(vp, 0);
|
||||
}
|
||||
s = splbio();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sync_vnops.c,v 1.3 2000/07/09 00:59:06 mycroft Exp $ */
|
||||
/* $NetBSD: sync_vnops.c,v 1.4 2000/09/19 22:01:59 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Marshall Kirk McKusick. All Rights Reserved.
|
||||
|
@ -124,6 +124,8 @@ sync_fsync(v)
|
|||
struct vnode *a_vp;
|
||||
struct ucred *a_cred;
|
||||
int a_flags;
|
||||
off_t offlo;
|
||||
off_t offhi;
|
||||
struct proc *a_p;
|
||||
} */ *ap = v;
|
||||
struct vnode *syncvp = ap->a_vp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: union_vnops.c,v 1.47 2000/03/30 12:22:14 augustss Exp $ */
|
||||
/* $NetBSD: union_vnops.c,v 1.48 2000/09/19 22:02:00 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1994, 1995 Jan-Simon Pendry.
|
||||
|
@ -1127,6 +1127,8 @@ union_fsync(v)
|
|||
struct vnode *a_vp;
|
||||
struct ucred *a_cred;
|
||||
int a_flags;
|
||||
off_t offhi;
|
||||
off_t offlo;
|
||||
struct proc *a_p;
|
||||
} */ *ap = v;
|
||||
int error = 0;
|
||||
|
@ -1153,7 +1155,8 @@ union_fsync(v)
|
|||
vn_lock(targetvp, LK_EXCLUSIVE | LK_RETRY);
|
||||
else
|
||||
FIXUP(VTOUNION(ap->a_vp));
|
||||
error = VOP_FSYNC(targetvp, ap->a_cred, ap->a_flags, p);
|
||||
error = VOP_FSYNC(targetvp, ap->a_cred, ap->a_flags,
|
||||
ap->a_offlo, ap->a_offhi, p);
|
||||
if (dolock)
|
||||
VOP_UNLOCK(targetvp, 0);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msdosfs_vfsops.c,v 1.69 2000/04/03 18:12:12 jdolecek Exp $ */
|
||||
/* $NetBSD: msdosfs_vfsops.c,v 1.70 2000/09/19 22:02:10 fvdl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
|
||||
|
@ -909,7 +909,7 @@ loop:
|
|||
continue;
|
||||
}
|
||||
if ((error = VOP_FSYNC(vp, cred,
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, p)) != 0)
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0, p)) != 0)
|
||||
allerror = error;
|
||||
vput(vp);
|
||||
simple_lock(&mntvnode_slock);
|
||||
|
@ -919,7 +919,7 @@ loop:
|
|||
* Force stale file system control information to be flushed.
|
||||
*/
|
||||
if ((error = VOP_FSYNC(pmp->pm_devvp, cred,
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, p)) != 0)
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0, p)) != 0)
|
||||
allerror = error;
|
||||
#ifdef QUOTA
|
||||
/* qsync(mp); */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ntfs_vnops.c,v 1.29 2000/08/03 03:41:54 thorpej Exp $ */
|
||||
/* $NetBSD: ntfs_vnops.c,v 1.30 2000/09/19 22:02:49 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -820,6 +820,8 @@ ntfs_fsync(ap)
|
|||
struct vnode *a_vp;
|
||||
struct ucred *a_cred;
|
||||
int a_waitfor;
|
||||
off_t offlo;
|
||||
off_t offhi;
|
||||
struct proc *a_p;
|
||||
} */ *ap;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ext2fs_vfsops.c,v 1.38 2000/07/22 14:49:17 jdolecek Exp $ */
|
||||
/* $NetBSD: ext2fs_vfsops.c,v 1.39 2000/09/19 22:03:05 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
|
@ -791,7 +791,7 @@ loop:
|
|||
continue;
|
||||
}
|
||||
if ((error = VOP_FSYNC(vp, cred,
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, p)) != 0)
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0, p)) != 0)
|
||||
allerror = error;
|
||||
vput(vp);
|
||||
simple_lock(&mntvnode_slock);
|
||||
|
@ -803,7 +803,7 @@ loop:
|
|||
if (waitfor != MNT_LAZY) {
|
||||
vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY);
|
||||
if ((error = VOP_FSYNC(ump->um_devvp, cred,
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, p)) != 0)
|
||||
waitfor == MNT_WAIT ? FSYNC_WAIT : 0, 0, 0, p)) != 0)
|
||||
allerror = error;
|
||||
VOP_UNLOCK(ump->um_devvp, 0);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lfs_vnops.c,v 1.44 2000/09/09 04:49:55 perseant Exp $ */
|
||||
/* $NetBSD: lfs_vnops.c,v 1.45 2000/09/19 22:03:15 fvdl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -282,6 +282,8 @@ lfs_fsync(v)
|
|||
struct vnode *a_vp;
|
||||
struct ucred *a_cred;
|
||||
int a_flags;
|
||||
off_t offlo;
|
||||
off_t offhi;
|
||||
struct proc *a_p;
|
||||
} */ *ap = v;
|
||||
|
||||
|
@ -487,7 +489,7 @@ lfs_mknod(v)
|
|||
* return. But, that leaves this vnode in limbo, also not good.
|
||||
* Can this ever happen (barring hardware failure)?
|
||||
*/
|
||||
if ((error = VOP_FSYNC(*vpp, NOCRED, FSYNC_WAIT, curproc)) != 0) {
|
||||
if ((error = VOP_FSYNC(*vpp, NOCRED, FSYNC_WAIT, 0, 0, curproc)) != 0) {
|
||||
printf("Couldn't fsync in mknod (ino %d)---what do I do?\n",
|
||||
VTOI(*vpp)->i_number);
|
||||
return (error);
|
||||
|
|
Loading…
Reference in New Issue