summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_alloc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-22 11:47:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-22 11:47:23 +0000
commitb38ed5ae00295759a4ccd7ba7032cd145339ce9c (patch)
tree49713f48036810c6e6d4a3e717e65b1d80f08d64 /sys/ufs/ffs/ffs_alloc.c
parent2f6ba5a0e16acb060f500ae67bb5b820955ac688 (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_alloc.c')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index a4bea4eb5d1..666560caf32 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ffs_alloc.c,v 1.3 1996/04/21 22:32:28 deraadt Exp $ */
-/* $NetBSD: ffs_alloc.c,v 1.10 1996/03/17 02:16:18 christos Exp $ */
+/* $OpenBSD: ffs_alloc.c,v 1.4 1996/05/22 11:47:17 deraadt Exp $ */
+/* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -339,6 +339,7 @@ ffs_reallocblks(v)
daddr_t start_lbn, end_lbn, soff, newblk, blkno;
struct indir start_ap[NIADDR + 1], end_ap[NIADDR + 1], *idp;
int i, len, start_lvl, end_lvl, pref, ssize;
+ struct timespec ts;
vp = ap->a_vp;
ip = VTOI(vp);
@@ -452,9 +453,10 @@ ffs_reallocblks(v)
bwrite(sbp);
} else {
ip->i_flag |= IN_CHANGE | IN_UPDATE;
- if (!doasyncfree)
- VOP_UPDATE(vp, (struct timeval *)&time,
- (struct timeval *)&time, MNT_WAIT);
+ if (!doasyncfree) {
+ TIMEVAL_TO_TIMESPEC(&time, &ts);
+ VOP_UPDATE(vp, &ts, &ts, 1);
+ }
}
if (ssize < len)
if (doasyncfree)