summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-06-22 13:59:13 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-06-22 13:59:13 +0000
commitdf2c68b921e02bde5e74b47112b329a5c75224fa (patch)
tree64324ba683c60a4abde334385cf6bcd6203d6c88 /sys/ufs
parent925507fbf113222633c42840c359f72b8c9bb33e (diff)
Update ffs[1/2] time last written for cg's in
clusteralloc(); From mickey; ok pedro@
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 1a3d6fad9a3..c0fe153c52b 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_alloc.c,v 1.77 2007/06/01 23:47:57 deraadt Exp $ */
+/* $OpenBSD: ffs_alloc.c,v 1.78 2007/06/22 13:59:12 thib Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */
/*
@@ -1491,6 +1491,8 @@ ffs_clusteralloc(struct inode *ip, int cg, daddr_t bpref, int len)
/*
* Allocate the cluster that we have found.
*/
+ cgp->cg_ffs2_time = cgp->cg_time = time_second;
+
#ifdef DIAGNOSTIC
for (i = 1; i <= len; i++)
if (!ffs_isblock(fs, cg_blksfree(cgp), got - run + i))