freebsd-skq/sys/gnu/ext2fs
alc 5cb08a2652 The VFS/BIO subsystem contained a number of hacks in order to optimize
piecemeal, middle-of-file writes for NFS.  These hacks have caused no
end of trouble, especially when combined with mmap().  I've removed
them.  Instead, NFS will issue a read-before-write to fully
instantiate the struct buf containing the write.  NFS does, however,
optimize piecemeal appends to files.  For most common file operations,
you will not notice the difference.  The sole remaining fragment in
the VFS/BIO system is b_dirtyoff/end, which NFS uses to avoid cache
coherency issues with read-merge-write style operations.  NFS also
optimizes the write-covers-entire-buffer case by avoiding the
read-before-write.  There is quite a bit of room for further
optimization in these areas.

The VM system marks pages fully-valid (AKA vm_page_t->valid =
VM_PAGE_BITS_ALL) in several places, most noteably in vm_fault.  This
is not correct operation.  The vm_pager_get_pages() code is now
responsible for marking VM pages all-valid.  A number of VM helper
routines have been added to aid in zeroing-out the invalid portions of
a VM page prior to the page being marked all-valid.  This operation is
necessary to properly support mmap().  The zeroing occurs most often
when dealing with file-EOF situations.  Several bugs have been fixed
in the NFS subsystem, including bits handling file and directory EOF
situations and buf->b_flags consistancy issues relating to clearing
B_ERROR & B_INVAL, and handling B_DONE.

getblk() and allocbuf() have been rewritten.  B_CACHE operation is now
formally defined in comments and more straightforward in
implementation.  B_CACHE for VMIO buffers is based on the validity of
the backing store.  B_CACHE for non-VMIO buffers is based simply on
whether the buffer is B_INVAL or not (B_CACHE set if B_INVAL clear,
and vise-versa).  biodone() is now responsible for setting B_CACHE
when a successful read completes.  B_CACHE is also set when a bdwrite()
is initiated and when a bwrite() is initiated.  VFS VOP_BWRITE
routines (there are only two - nfs_bwrite() and bwrite()) are now
expected to set B_CACHE.  This means that bowrite() and bawrite() also
set B_CACHE indirectly.

There are a number of places in the code which were previously using
buf->b_bufsize (which is DEV_BSIZE aligned) when they should have
been using buf->b_bcount.  These have been fixed.  getblk() now clears
B_DONE on return because the rest of the system is so bad about
dealing with B_DONE.

Major fixes to NFS/TCP have been made.  A server-side bug could cause
requests to be lost by the server due to nfs_realign() overwriting
other rpc's in the same TCP mbuf chain.  The server's kernel must be
recompiled to get the benefit of the fixes.

Submitted by:	Matthew Dillon <dillon@apollo.backplane.com>
1999-05-02 23:57:16 +00:00
..
COPYRIGHT.INFO Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108. 1998-04-17 22:37:19 +00:00
ext2_alloc.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
ext2_balloc.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
ext2_bmap.c The VFS/BIO subsystem contained a number of hacks in order to optimize 1999-05-02 23:57:16 +00:00
ext2_extern.h Don't pass unused unused timestamp args to UFS_UPDATE() or waste 1999-01-07 16:14:19 +00:00
ext2_fs_i.h Main code for the ext2fs filesystem. Please refer to the COPYRIGHT.INFO 1995-11-05 23:25:12 +00:00
ext2_fs_sb.h Fixed clean flag handling: 1998-09-26 06:18:59 +00:00
ext2_fs.h Fixed bloatage of `struct inode'. We used 5 "spare" fields for ext2fs, 1998-10-13 15:45:43 +00:00
ext2_ihash.c Ifdefed conditionally used simplock variables. 1999-01-02 11:34:57 +00:00
ext2_inode_cnv.c Fixed printf format errors. 1998-07-11 07:46:16 +00:00
ext2_inode.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
ext2_linux_balloc.c Added a used #include (don't depend on "vnode_if.h" including <sys/buf.h>). 1999-02-25 15:54:06 +00:00
ext2_linux_ialloc.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
ext2_lookup.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
ext2_mount.h Don't pass unused unused timestamp args to UFS_UPDATE() or waste 1999-01-07 16:14:19 +00:00
ext2_readwrite.c Don't pass unused unused timestamp args to UFS_UPDATE() or waste 1999-01-07 16:14:19 +00:00
ext2_subr.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
ext2_vfsops.c Fixed parenthesization botch in previous commit. Async update of inodes 1999-01-29 15:36:05 +00:00
ext2_vnops.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
fs.h Quick fix for not being able to sync all the buffers in boot() if 1998-10-03 16:19:28 +00:00
i386-bitops.h Support compiling with `gcc -pedantic' (don't use hard newlines in 1998-09-09 12:22:17 +00:00
inode.h Don't depend on <ufs/ufs/quota.h> or another (old) prerequisite including 1999-03-06 05:21:09 +00:00