freebsd-skq/sys/dev/virtio/balloon
kib 4675fcfce0 Different consumers of the struct vm_page abuse pageq member to keep
additional information, when the page is guaranteed to not belong to a
paging queue.  Usually, this results in a lot of type casts which make
reasoning about the code correctness harder.

Sometimes m->object is used instead of pageq, which could cause real
and confusing bugs if non-NULL m->object is leaked.  See r141955 and
r253140 for examples.

Change the pageq member into a union containing explicitly-typed
members.  Use them instead of type-punning or abusing m->object in x86
pmaps, uma and vm_page_alloc_contig().

Requested and reviewed by:	alc
Sponsored by:	The FreeBSD Foundation
2013-08-10 17:36:42 +00:00
..
virtio_balloon.c Different consumers of the struct vm_page abuse pageq member to keep 2013-08-10 17:36:42 +00:00
virtio_balloon.h Do not include <sys/types.h> in the local headers. The .c files including 2012-07-03 15:15:41 +00:00