Diff markup
1 static inline void 1 static inline void
2 add_page_to_active_list(struct zone *zone, str 2 add_page_to_active_list(struct zone *zone, struct page *page)
3 { 3 {
4 list_add(&page->lru, &zone->active_lis 4 list_add(&page->lru, &zone->active_list);
5 __inc_zone_state(zone, NR_ACTIVE); 5 __inc_zone_state(zone, NR_ACTIVE);
6 } 6 }
7 7
8 static inline void 8 static inline void
9 add_page_to_inactive_list(struct zone *zone, s 9 add_page_to_inactive_list(struct zone *zone, struct page *page)
10 { 10 {
11 list_add(&page->lru, &zone->inactive_l 11 list_add(&page->lru, &zone->inactive_list);
12 __inc_zone_state(zone, NR_INACTIVE); 12 __inc_zone_state(zone, NR_INACTIVE);
13 } 13 }
14 14
15 static inline void 15 static inline void
16 del_page_from_active_list(struct zone *zone, s 16 del_page_from_active_list(struct zone *zone, struct page *page)
17 { 17 {
18 list_del(&page->lru); 18 list_del(&page->lru);
19 __dec_zone_state(zone, NR_ACTIVE); 19 __dec_zone_state(zone, NR_ACTIVE);
20 } 20 }
21 21
22 static inline void 22 static inline void
23 del_page_from_inactive_list(struct zone *zone, 23 del_page_from_inactive_list(struct zone *zone, struct page *page)
24 { 24 {
25 list_del(&page->lru); 25 list_del(&page->lru);
26 __dec_zone_state(zone, NR_INACTIVE); 26 __dec_zone_state(zone, NR_INACTIVE);
27 } 27 }
28 28
29 static inline void 29 static inline void
30 del_page_from_lru(struct zone *zone, struct pa 30 del_page_from_lru(struct zone *zone, struct page *page)
31 { 31 {
32 list_del(&page->lru); 32 list_del(&page->lru);
33 if (PageActive(page)) { 33 if (PageActive(page)) {
34 __ClearPageActive(page); 34 __ClearPageActive(page);
35 __dec_zone_state(zone, NR_ACTI 35 __dec_zone_state(zone, NR_ACTIVE);
36 } else { 36 } else {
37 __dec_zone_state(zone, NR_INAC 37 __dec_zone_state(zone, NR_INACTIVE);
38 } 38 }
39 } 39 }
40 40
41 41
|
This page was automatically generated by the
LXR engine.
|