K 10 svn:author V 6 dillon K 8 svn:date V 27 2000-11-19T01:28:49.000000Z K 7 svn:log V 1093 MFC VFS/BIO portion from 1.267. VM/low-mem fixes will be MFC'd later: KASSERT if the original buffer for a background write was replaced, indicating a probable duplicate I/O or passing I/O resulting in filesystem corruption. There are still probable bugs in the I/O handling and this will catch them rather then allow the FS to become corrupted. Remove the BX_BKGRDINPROG test in brelse() that was not working anyway, to restore prior NFS functionality (which we also believe does not work anyway, but this is safest until we figure out how to fix that whole section). Fixed bogus_page handling in brelse which could lead to invalidation of the wrong page and thus filesystem corruption. Fixed foff calculation in biodone(). I/O's with errors or I/O's brelse()'d rather then initiated could lead to an attempt to reprocess the same b_pages[] element twice, resulting in a 'busy < 0' panic. Approved: jkh Reviewed-by: mckusick, Ian Dowse Submitted-by: dillon, mckusick, Ian Dowse END