Skip to content

Commit

Permalink
As with r354905 use uint16_t to store aflags on the stack and as func…
Browse files Browse the repository at this point in the history
…tion

arguments as the aflags size in vm_page_t has increased.

Sponsored by:	DARPA, AFRL
  • Loading branch information
zxombie committed Nov 20, 2019
1 parent c3303ed commit 1855df7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/vm/vm_page.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ sysctl_vm_page_blacklist(SYSCTL_HANDLER_ARGS)
* Nonetheless, it write busies the page as a safety precaution.
*/
static void
vm_page_init_marker(vm_page_t marker, int queue, uint8_t aflags)
vm_page_init_marker(vm_page_t marker, int queue, uint16_t aflags)
{

bzero(marker, sizeof(*marker));
Expand Down Expand Up @@ -3175,7 +3175,7 @@ static inline void
vm_pqbatch_process_page(struct vm_pagequeue *pq, vm_page_t m)
{
struct vm_domain *vmd;
uint8_t qflags;
uint16_t qflags;

CRITICAL_ASSERT(curthread);
vm_pagequeue_assert_locked(pq);
Expand Down Expand Up @@ -3421,7 +3421,7 @@ void
vm_page_dequeue(vm_page_t m)
{
struct vm_pagequeue *pq, *pq1;
uint8_t aflags;
uint16_t aflags;

KASSERT(mtx_owned(vm_page_lockptr(m)) || m->ref_count == 0,
("page %p is allocated and unlocked", m));
Expand Down

0 comments on commit 1855df7

Please sign in to comment.