Index: sys/vm/vm_page.h =================================================================== --- sys/vm/vm_page.h +++ sys/vm/vm_page.h @@ -312,10 +312,10 @@ #define VPB_UNBUSIED VPB_SHARERS_WORD(0) #define PQ_NONE 255 -#define PQ_INACTIVE 0 -#define PQ_ACTIVE 1 -#define PQ_LAUNDRY 2 -#define PQ_UNSWAPPABLE 3 +#define PQ_UNSWAPPABLE 0 +#define PQ_LAUNDRY 1 +#define PQ_INACTIVE 2 +#define PQ_ACTIVE 3 #define PQ_COUNT 4 #ifndef VM_PAGE_HAVE_PGLIST @@ -916,10 +916,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 */ } /*