diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 11:47:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 11:47:23 +0000 |
commit | b38ed5ae00295759a4ccd7ba7032cd145339ce9c (patch) | |
tree | 49713f48036810c6e6d4a3e717e65b1d80f08d64 /sys/ufs/ffs/ffs_vnops.c | |
parent | 2f6ba5a0e16acb060f500ae67bb5b820955ac688 (diff) |
Change VOP_UPDATE() semantics:
* Make 2nd and 3rd args timespecs, not timevals.
* Consistently pass a Boolean as the 4th arg (except in LFS).
Also, fix ffs_update() and lfs_update() to actually change the nsec fields.
Diffstat (limited to 'sys/ufs/ffs/ffs_vnops.c')
-rw-r--r-- | sys/ufs/ffs/ffs_vnops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 2fb888dc4e1..e9462ff50be 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -1,5 +1,5 @@ -/* $OpenBSD: ffs_vnops.c,v 1.2 1996/02/27 07:27:41 niklas Exp $ */ -/* $NetBSD: ffs_vnops.c,v 1.6 1996/02/09 22:22:27 christos Exp $ */ +/* $OpenBSD: ffs_vnops.c,v 1.3 1996/05/22 11:47:18 deraadt Exp $ */ +/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -250,11 +250,11 @@ ffs_fsync(v) struct proc *a_p; } */ *ap = v; register struct vnode *vp = ap->a_vp; - struct timeval tv; + struct timespec ts; vflushbuf(vp, ap->a_waitfor == MNT_WAIT); - tv = time; - return (VOP_UPDATE(ap->a_vp, &tv, &tv, ap->a_waitfor == MNT_WAIT)); + TIMEVAL_TO_TIMESPEC(&time, &ts); + return (VOP_UPDATE(ap->a_vp, &ts, &ts, ap->a_waitfor == MNT_WAIT)); } /* |