kernel - Beef up vm_contig allocation checks
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 8 Nov 2011 23:38:16 +0000 (15:38 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 8 Nov 2011 23:39:31 +0000 (15:39 -0800)
commit709f5959ae62a1025786662a7da3c5e1ace58805
treedf695f158ffd45f54df2c1ea78983b54b22d6117
parent90244566ec0139f7294d88277589e18403a74c11
kernel - Beef up vm_contig allocation checks

* Beef up vm_contig allocation checks by also requiring the PQ_CACHE page
  to not be held or wired or unmanaged, and assert that it is not mapped
  or dirty.

* When utilizing PQ_FREE pages ignore any held pages and assert that
  the pages are not dirty in addition to not having an object.

* Do not clear PG_SBUSY when allocating a page (though it shouldn't be set
  anyway, we still shouldn't unconditionally clear the bit).
sys/vm/vm_contig.c