New flag: B_PAGING. Added as part of the vn driver hack.
This commit is contained in:
parent
334095ef1c
commit
aba8f38eb9
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)buf.h 8.7 (Berkeley) 1/21/94
|
||||
* $Id: buf.h,v 1.16 1995/03/28 07:57:33 bde Exp $
|
||||
* $Id: buf.h,v 1.17 1995/04/09 06:03:32 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_BUF_H_
|
||||
@ -137,6 +137,7 @@ struct buf {
|
||||
#define B_WRITE 0x00000000 /* Write buffer (pseudo flag). */
|
||||
#define B_WRITEINPROG 0x01000000 /* Write in progress. */
|
||||
#define B_XXX 0x02000000 /* Debugging flag. */
|
||||
#define B_PAGING 0x04000000 /* volatile paging I/O -- bypass VMIO */
|
||||
#define B_VMIO 0x20000000 /* VMIO flag */
|
||||
#define B_CLUSTER 0x40000000 /* pagein op, so swap() can count it */
|
||||
#define B_BOUNCE 0x80000000 /* bounce buffer flag */
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)buf.h 8.7 (Berkeley) 1/21/94
|
||||
* $Id: buf.h,v 1.16 1995/03/28 07:57:33 bde Exp $
|
||||
* $Id: buf.h,v 1.17 1995/04/09 06:03:32 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_BUF_H_
|
||||
@ -137,6 +137,7 @@ struct buf {
|
||||
#define B_WRITE 0x00000000 /* Write buffer (pseudo flag). */
|
||||
#define B_WRITEINPROG 0x01000000 /* Write in progress. */
|
||||
#define B_XXX 0x02000000 /* Debugging flag. */
|
||||
#define B_PAGING 0x04000000 /* volatile paging I/O -- bypass VMIO */
|
||||
#define B_VMIO 0x20000000 /* VMIO flag */
|
||||
#define B_CLUSTER 0x40000000 /* pagein op, so swap() can count it */
|
||||
#define B_BOUNCE 0x80000000 /* bounce buffer flag */
|
||||
|
@ -39,7 +39,7 @@
|
||||
* from: Utah $Hdr: swap_pager.c 1.4 91/04/30$
|
||||
*
|
||||
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
|
||||
* $Id: swap_pager.c,v 1.33 1995/04/16 12:56:14 davidg Exp $
|
||||
* $Id: swap_pager.c,v 1.34 1995/04/16 13:58:42 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1065,7 +1065,7 @@ swap_pager_input(swp, m, count, reqpage)
|
||||
*/
|
||||
pmap_qenter(kva, m, count);
|
||||
|
||||
bp->b_flags = B_BUSY | B_READ | B_CALL;
|
||||
bp->b_flags = B_BUSY | B_READ | B_CALL | B_PAGING;
|
||||
bp->b_iodone = swap_pager_iodone1;
|
||||
bp->b_proc = &proc0; /* XXX (but without B_PHYS set this is ok) */
|
||||
bp->b_rcred = bp->b_wcred = bp->b_proc->p_ucred;
|
||||
@ -1422,7 +1422,7 @@ swap_pager_output(swp, m, count, flags, rtvals)
|
||||
bp->b_spc = spc;
|
||||
bp->b_vnbufs.le_next = NOLIST;
|
||||
|
||||
bp->b_flags = B_BUSY;
|
||||
bp->b_flags = B_BUSY | B_PAGING;
|
||||
bp->b_proc = &proc0; /* XXX (but without B_PHYS set this is ok) */
|
||||
bp->b_rcred = bp->b_wcred = bp->b_proc->p_ucred;
|
||||
if (bp->b_rcred != NOCRED)
|
||||
|
Loading…
Reference in New Issue
Block a user