usb-serial: Add ThinkOptics WavIT
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / linux / mm_inline.h
blob895bc4e93039cdba7f6585b484abed3b9eb4a920
1 static inline void
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);
8 static inline void
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);
15 static inline void
16 del_page_from_active_list(struct zone *zone, struct page *page)
18 list_del(&page->lru);
19 __dec_zone_state(zone, NR_ACTIVE);
22 static inline void
23 del_page_from_inactive_list(struct zone *zone, struct page *page)
25 list_del(&page->lru);
26 __dec_zone_state(zone, NR_INACTIVE);
29 static inline void
30 del_page_from_lru(struct zone *zone, struct page *page)
32 list_del(&page->lru);
33 if (PageActive(page)) {
34 __ClearPageActive(page);
35 __dec_zone_state(zone, NR_ACTIVE);
36 } else {
37 __dec_zone_state(zone, NR_INACTIVE);