#define PGC_static 0
#endif
-#define PGC_preserved (PGC_extra | PGC_static)
#define PGC_no_buddy_merge PGC_static
#ifndef PGT_TYPE_INFO_INITIALIZER
{
case PGC_state_inuse:
BUG_ON(pg->count_info & PGC_broken);
- pg->count_info = PGC_state_free | (pg->count_info & PGC_preserved);
+ pg->count_info = PGC_state_free;
break;
case PGC_state_offlining:
- pg->count_info = (pg->count_info & (PGC_broken | PGC_preserved)) |
+ pg->count_info = (pg->count_info & PGC_broken) |
PGC_state_offlined;
pg_offlined = true;
break;
for ( i = 0; i < nr; i++ )
{
- ASSERT(!(pg[i].count_info & ~PGC_preserved));
+ ASSERT(!(pg[i].count_info & ~(PGC_extra | PGC_static)));
if ( pg[i].count_info & PGC_extra )
extra_pages++;
}
page_set_owner(&pg[i], d);
smp_wmb(); /* Domain pointer must be visible before updating refcnt. */
pg[i].count_info =
- (pg[i].count_info & PGC_preserved) | PGC_allocated | 1;
+ (pg[i].count_info & (PGC_extra | PGC_static)) | PGC_allocated | 1;
page_list_add_tail(&pg[i], page_to_list(d, &pg[i]));
}