]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the write-behind code to take more care when starting
authordillon <dillon@FreeBSD.org>
Sun, 2 Apr 2000 00:55:28 +0000 (00:55 +0000)
committerdillon <dillon@FreeBSD.org>
Sun, 2 Apr 2000 00:55:28 +0000 (00:55 +0000)
commit057e33d02ca1d636be1b99e212ebb7911cf4fc62
treec8d43beb4d47e12029b09bb06c919f2a25c818e1
parent0589fa18882d56c333936da3d552f6f1fb8a3fab
Change the write-behind code to take more care when starting
    async I/O's.  The sequential read heuristic has been extended to
    cover writes as well.  We continue to call cluster_write() normally,
    thus blocks in the file will still be reallocated for large (but still
    random) I/O's, but I/O will only be initiated for truely sequential
    writes.

    This solves a number of annoying situations, especially with DBM (hash
    method) writes, and also has the side effect of fixing a number of
    (stupid) benchmarks.

Reviewed-by: mckusick
sys/gnu/ext2fs/ext2_readwrite.c
sys/gnu/fs/ext2fs/ext2_readwrite.c
sys/kern/vfs_cluster.c
sys/kern/vfs_vnops.c
sys/sys/bio.h
sys/sys/buf.h
sys/sys/file.h
sys/sys/vnode.h
sys/ufs/ufs/ufs_readwrite.c