mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Explicitly set B_PAGING
This commit is contained in:
parent
0407880f4b
commit
5e04322a6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118527
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user