From df2c68b921e02bde5e74b47112b329a5c75224fa Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Fri, 22 Jun 2007 13:59:13 +0000 Subject: Update ffs[1/2] time last written for cg's in clusteralloc(); From mickey; ok pedro@ --- sys/ufs/ffs/ffs_alloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/ufs') 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)) -- cgit v1.2.3