diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-06 09:22:47 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-08-06 09:22:47 +0000 |
commit | 5e04322a6e3952b8e092ad174deb4009cfb776ea (patch) | |
tree | fccca71e732aba1969b3b133f0f6b69aecf6127e /sys/vm/swap_pager.c | |
parent | 0407880f4bed781734fde95593e576d9e228bac6 (diff) | |
download | src-test2-5e04322a6e3952b8e092ad174deb4009cfb776ea.tar.gz src-test2-5e04322a6e3952b8e092ad174deb4009cfb776ea.zip |
Notes
Diffstat (limited to 'sys/vm/swap_pager.c')
-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 30c820b15722..a6114806cf1b 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); |