Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Don't flush possibilly relocated file system blo...
details: https://anonhg.NetBSD.org/src/rev/acd6b143d684
branches: trunk
changeset: 508706:acd6b143d684
user: enami <enami%NetBSD.org@localhost>
date: Wed Apr 18 03:48:23 2001 +0000
description:
Don't flush possibilly relocated file system block if write is done
asynchronously. They will be flushed later when necessary and flushing
now makes sequential write access very slow.
diffstat:
sys/ufs/ufs/ufs_inode.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r d7697bee1b5e -r acd6b143d684 sys/ufs/ufs/ufs_inode.c
--- a/sys/ufs/ufs/ufs_inode.c Wed Apr 18 03:45:10 2001 +0000
+++ b/sys/ufs/ufs/ufs_inode.c Wed Apr 18 03:48:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_inode.c,v 1.22 2001/02/27 02:55:40 chs Exp $ */
+/* $NetBSD: ufs_inode.c,v 1.23 2001/04/18 03:48:23 enami Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -288,9 +288,10 @@
* We need to flush pages to the new disk locations.
*/
- (uobj->pgops->pgo_flush)(uobj, oldeof & ~(bsize - 1),
- MIN((oldeof + bsize) & ~(bsize - 1), neweof),
- PGO_CLEANIT | ((flags & B_SYNC) ? PGO_SYNCIO : 0));
+ if ((flags & B_SYNC) != 0)
+ (*uobj->pgops->pgo_flush)(uobj, oldeof & ~(bsize - 1),
+ MIN((oldeof + bsize) & ~(bsize - 1), neweof),
+ PGO_CLEANIT | PGO_SYNCIO);
}
if (pgs2[0] != NULL) {
uvm_page_unbusy(pgs2, npages2);
Home |
Main Index |
Thread Index |
Old Index