2 add_page_to_active_list(struct zone *zone, struct page *page)
4 list_add(&page->lru, &zone->active_list);
5 __inc_zone_state(zone, NR_ACTIVE);
9 add_page_to_inactive_list(struct zone *zone, struct page *page)
11 list_add(&page->lru, &zone->inactive_list);
12 __inc_zone_state(zone, NR_INACTIVE);
16 del_page_from_active_list(struct zone *zone, struct page *page)
19 __dec_zone_state(zone, NR_ACTIVE);
23 del_page_from_inactive_list(struct zone *zone, struct page *page)
26 __dec_zone_state(zone, NR_INACTIVE);
30 del_page_from_lru(struct zone *zone, struct page *page)
33 if (PageActive(page)) {
34 __ClearPageActive(page);
35 __dec_zone_state(zone, NR_ACTIVE);
37 __dec_zone_state(zone, NR_INACTIVE);