Subject: CVS commit: [perseant-lfsv2] syssrc/sys/ufs/lfs
To: None <>
From: Konrad Schroder <>
List: source-changes
Date: 07/13/2001 07:51:24
Module Name:	syssrc
Committed By:	perseant
Date:		Fri Jul 13 04:51:24 UTC 2001

Modified Files:
	syssrc/sys/ufs/lfs [perseant-lfsv2]: lfs.h lfs_alloc.c lfs_bio.c

Log Message:
Be more careful about when we update ctime/mtime.  In particular, if we
are only writing indirect blocks, that doesn't count for mtime; and when
we first create a vnode, that certainly *does not* count for ctime
(a bug that's been there from the beginning).

This does not change the fact that mtime might still be set after write(2)
is "completed", but it does make the atime-in-the-ifile code have some
effect (noticeable less degradation of read time after an intervening
large write).

To generate a diff of this commit:
cvs rdiff -r1.36.4.3 -r1.36.4.4 syssrc/sys/ufs/lfs/lfs.h
cvs rdiff -r1.47.2.5 -r1.47.2.6 syssrc/sys/ufs/lfs/lfs_alloc.c
cvs rdiff -r1.35.4.3 -r1.35.4.4 syssrc/sys/ufs/lfs/lfs_bio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.