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