Index: sys/vm/vm_page.h =================================================================== --- sys/vm/vm_page.h +++ sys/vm/vm_page.h @@ -290,7 +290,8 @@ #define VPB_UNBUSIED VPB_SHARERS_WORD(0) -#define PQ_NONE 255 +/* 0x2 bit is used to indicate PQ is in laundry, PQ_LAUNDRY or PQ_UNSWAPPABLE */ +#define PQ_NONE (255 - 0x2) #define PQ_INACTIVE 0 #define PQ_ACTIVE 1 #define PQ_LAUNDRY 2 @@ -888,10 +889,8 @@ static inline bool vm_page_in_laundry(vm_page_t m) { - uint8_t queue; - queue = vm_page_queue(m); - return (queue == PQ_LAUNDRY || queue == PQ_UNSWAPPABLE); + return (vm_page_queue(m) & PQ_LAUNDRY); /* LAUNDRY or UNSWAPPABLE */ } /*