ELF loader support for auxvec base platform string
[deliverable/linux.git] / include / linux / mm_inline.h
CommitLineData
1da177e4
LT
1static inline void
2add_page_to_active_list(struct zone *zone, struct page *page)
3{
4 list_add(&page->lru, &zone->active_list);
c8785385 5 __inc_zone_state(zone, NR_ACTIVE);
1da177e4
LT
6}
7
8static inline void
9add_page_to_inactive_list(struct zone *zone, struct page *page)
10{
11 list_add(&page->lru, &zone->inactive_list);
c8785385 12 __inc_zone_state(zone, NR_INACTIVE);
1da177e4
LT
13}
14
15static inline void
16del_page_from_active_list(struct zone *zone, struct page *page)
17{
18 list_del(&page->lru);
c8785385 19 __dec_zone_state(zone, NR_ACTIVE);
1da177e4
LT
20}
21
22static inline void
23del_page_from_inactive_list(struct zone *zone, struct page *page)
24{
25 list_del(&page->lru);
c8785385 26 __dec_zone_state(zone, NR_INACTIVE);
1da177e4
LT
27}
28
29static inline void
30del_page_from_lru(struct zone *zone, struct page *page)
31{
32 list_del(&page->lru);
33 if (PageActive(page)) {
67453911 34 __ClearPageActive(page);
c8785385 35 __dec_zone_state(zone, NR_ACTIVE);
1da177e4 36 } else {
c8785385 37 __dec_zone_state(zone, NR_INACTIVE);
1da177e4
LT
38 }
39}
21eac81f 40
This page took 0.885857 seconds and 5 git commands to generate.