diff options
author | alc <alc@FreeBSD.org> | 2011-01-17 19:17:26 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2011-01-17 19:17:26 +0000 |
commit | d326a38b4b0f991450af222a605d5770df1a7aaa (patch) | |
tree | 3a2cce6895da39fb3c7d2598b16d379489ffed31 /sys/vm/device_pager.c | |
parent | 339c5f1730b6871b140eecd8533d1d0852addb69 (diff) | |
download | FreeBSD-src-d326a38b4b0f991450af222a605d5770df1a7aaa.zip FreeBSD-src-d326a38b4b0f991450af222a605d5770df1a7aaa.tar.gz |
Explicitly initialize the page's queue field to PQ_NONE instead of relying
on PQ_NONE being zero.
Redefine PQ_NONE and PQ_COUNT so that a page queue isn't allocated for
PQ_NONE.
Reviewed by: kib@
Diffstat (limited to 'sys/vm/device_pager.c')
-rw-r--r-- | sys/vm/device_pager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c index c7eab1d..442eb80 100644 --- a/sys/vm/device_pager.c +++ b/sys/vm/device_pager.c @@ -318,6 +318,7 @@ dev_pager_getfake(vm_paddr_t paddr, vm_memattr_t memattr) m = uma_zalloc(fakepg_zone, M_WAITOK | M_ZERO); m->phys_addr = paddr; + m->queue = PQ_NONE; /* Fictitious pages don't use "segind". */ m->flags = PG_FICTITIOUS; /* Fictitious pages don't use "order" or "pool". */ |