Use uvm_aio_biodone instead of uvm_aio_aiodone for top-level buf

so that uvmexp.paging is updated if this i/o was initiated by
the pagedaemon.
This commit is contained in:
enami 2001-01-07 05:54:41 +00:00
parent 6b02df2bb5
commit 744c012068
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_bio.c,v 1.58 2000/12/27 05:15:43 chs Exp $ */
/* $NetBSD: nfs_bio.c,v 1.59 2001/01/07 05:54:41 enami Exp $ */
/*
* Copyright (c) 1989, 1993
@ -1421,7 +1421,7 @@ nfs_putpages(v)
mbp->b_flags = B_BUSY|B_WRITE|B_AGE |
(async ? B_CALL|B_ASYNC : 0) |
(curproc == uvm.pagedaemon_proc ? B_PDAEMON : 0);
mbp->b_iodone = uvm_aio_aiodone;
mbp->b_iodone = uvm_aio_biodone;
mbp->b_vp = vp;
LIST_INIT(&mbp->b_dep);