diff options
author | phk <phk@FreeBSD.org> | 2003-08-06 09:22:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-08-06 09:22:47 +0000 |
commit | 890df5b795a5504a42b367ee2121038c89de94e8 (patch) | |
tree | fccca71e732aba1969b3b133f0f6b69aecf6127e /sys | |
parent | 10de01a46be3ee94ac910ffcf68ebf3b3ac31644 (diff) | |
download | FreeBSD-src-890df5b795a5504a42b367ee2121038c89de94e8.zip FreeBSD-src-890df5b795a5504a42b367ee2121038c89de94e8.tar.gz |
Explicitly set B_PAGING
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/swap_pager.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 30c820b..a611480 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -1045,11 +1045,10 @@ swap_pager_getpages(object, m, count, reqpage) * Get a swap buffer header to perform the IO */ bp = getpbuf(&nsw_rcount); + bp->b_flags |= B_PAGING; /* * map our page(s) into kva for input - * - * NOTE: B_PAGING is set by pbgetvp() */ pmap_qenter((vm_offset_t)bp->b_data, m + i, j - i); @@ -1287,8 +1286,6 @@ swap_pager_putpages(object, m, count, sync, rtvals) /* * All I/O parameters have been satisfied, build the I/O * request and assign the swap space. - * - * NOTE: B_PAGING is set by pbgetvp() */ if (sync == TRUE) { bp = getpbuf(&nsw_wcount_sync); @@ -1296,6 +1293,7 @@ swap_pager_putpages(object, m, count, sync, rtvals) bp = getpbuf(&nsw_wcount_async); bp->b_flags = B_ASYNC; } + bp->b_flags |= B_PAGING; bp->b_iocmd = BIO_WRITE; pmap_qenter((vm_offset_t)bp->b_data, &m[i], n); |