Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Chuck Silvers <chs@netbsd.org>
List: source-changes
Date: 03/11/2001 00:46:52
Module Name:	syssrc
Committed By:	chs
Date:		Sat Mar 10 22:46:52 UTC 2001

Modified Files:
	syssrc/sys/miscfs/genfs: genfs_vnops.c
	syssrc/sys/nfs: nfs_bio.c
	syssrc/sys/uvm: uvm_anon.c uvm_aobj.c uvm_bio.c uvm_device.c
	    uvm_fault.c uvm_loan.c uvm_pager.c uvm_pager.h uvm_pdaemon.c
	    uvm_swap.c uvm_vnode.c

Log Message:
eliminate the VM_PAGER_* error codes in favor of the traditional E* codes.
the mapping is:

VM_PAGER_OK		        0
VM_PAGER_BAD		        <unused>
VM_PAGER_FAIL		        <unused>
VM_PAGER_PEND		        0 (see below)
VM_PAGER_ERROR		        EIO
VM_PAGER_AGAIN		        EAGAIN
VM_PAGER_UNLOCK		        EBUSY
VM_PAGER_REFAULT	        ERESTART

for async i/o requests, it used to be possible for the request to
be convert to sync, and the pager would return VM_PAGER_OK or VM_PAGER_PEND
to indicate whether the caller should perform post-i/o cleanup.
this is no longer allowed; pagers must now return 0 to indicate that
the async i/o was successfully started, and the caller never needs to
worry about doing the post-i/o cleanup.


To generate a diff of this commit:
cvs rdiff -r1.31 -r1.32 syssrc/sys/miscfs/genfs/genfs_vnops.c
cvs rdiff -r1.63 -r1.64 syssrc/sys/nfs/nfs_bio.c
cvs rdiff -r1.15 -r1.16 syssrc/sys/uvm/uvm_anon.c
cvs rdiff -r1.39 -r1.40 syssrc/sys/uvm/uvm_aobj.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/uvm/uvm_bio.c
cvs rdiff -r1.30 -r1.31 syssrc/sys/uvm/uvm_device.c \
    syssrc/sys/uvm/uvm_pdaemon.c
cvs rdiff -r1.56 -r1.57 syssrc/sys/uvm/uvm_fault.c
cvs rdiff -r1.23 -r1.24 syssrc/sys/uvm/uvm_loan.c
cvs rdiff -r1.41 -r1.42 syssrc/sys/uvm/uvm_pager.c
cvs rdiff -r1.20 -r1.21 syssrc/sys/uvm/uvm_pager.h
cvs rdiff -r1.46 -r1.47 syssrc/sys/uvm/uvm_swap.c
cvs rdiff -r1.47 -r1.48 syssrc/sys/uvm/uvm_vnode.c

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