PG_RELEASED
freeflag = pagedaemon ? PG_PAGEOUT : PG_RELEASED;
KASSERT((pg->flags & (PG_RELEASED|PG_PAGEOUT)) == 0 ||
if ((pg->flags & (PG_RELEASED|PG_PAGEOUT)) != 0
pg->flags |= PG_RELEASED;
if (pg->flags & PG_RELEASED) {
pg->flags |= PG_RELEASED;
if (pgs[i]->flags & (PG_RELEASED|PG_PAGEOUT))
pg->flags |= PG_RELEASED;
if (pg->flags & PG_RELEASED) {
pg->flags &= ~PG_RELEASED;
pg->flags &= ~(PG_DELWRI|PG_PAGEOUT|PG_RELEASED);
KASSERT((pgs[i]->flags & PG_RELEASED) == 0);
KASSERT((pgs[i]->flags & PG_RELEASED) == 0);
KASSERT((pg->flags & PG_RELEASED) == 0);
pg->flags |= PG_RELEASED;
KASSERT((pg->flags & PG_RELEASED) != 0);
if (pg->flags & PG_RELEASED) {
if (pg->flags & PG_RELEASED) {
pg->flags &= ~PG_RELEASED;
KASSERT((pg->flags & PG_RELEASED) == 0);
if ((pg->flags & PG_RELEASED) != 0 ||
if ((pg->flags & PG_RELEASED) == 0) {
KASSERT((pg->flags & PG_RELEASED) == 0);
if ((pg->flags & PG_RELEASED) != 0) {
if ((pg->flags & PG_RELEASED) != 0) {
KASSERT(!(pg->flags & (PG_RELEASED|PG_PAGEOUT)));
if ((pgpp[i]->flags & PG_RELEASED) != 0) {
if ((pg->flags & PG_RELEASED) != 0 ||
if ((pg->flags & PG_RELEASED) == 0) {
if (pg->flags & PG_RELEASED) {
KASSERT(!(pgs[i]->flags & PG_RELEASED));
KASSERT(!(pg->flags & PG_RELEASED));
pg->flags &= ~(PG_BUSY|PG_RELEASED|PG_PAGER1);
pg->flags |= PG_RELEASED;
if (pg->flags & PG_RELEASED) {
pg->flags &= ~PG_RELEASED;
KASSERT((pg->flags & (PG_PAGEOUT|PG_RELEASED)) == 0);
KASSERT(pg == NULL || (pg->flags & (PG_RELEASED|PG_PAGEOUT)) == 0 ||
anon_disposed = (pg->flags & PG_RELEASED) != 0;
pg->flags |= PG_RELEASED;