Rik van Riel wrote:When all the patches applied, shrink_active_list() looks like: 1135 pgmoved = sc->isolate_pages(nr_pages, &l_hold, &pgscanned, sc->order, 1136 ISOLATE_ACTIVE, zone, 1137 sc->mem_cgroup, 1, file); : 1150 if (file) 1151 __mod_zone_page_state(zone, NR_ACTIVE_FILE, -pgmoved); 1152 else 1153 __mod_zone_page_state(zone, NR_ACTIVE_ANON, -pgmoved); 1154 spin_unlock_irq(&zone->lru_lock); 1155 1156 while (!list_empty(&l_hold)) { : 1166 if (page_referenced(page, 0, sc->mem_cgroup) && file) { 1167 /* Referenced file pages stay active. */ 1168 list_add(&page->lru, &l_active); 1169 } else { 1170 list_add(&page->lru, &l_inactive); 1171 if (!file) 1172 /* Anonymous pages always get deactivated. */ 1173 pgmoved++; : 1178 } 1179 } 1180 1181 /* 1182 * Count the referenced anon pages as rotated, to balance pageout 1183 * scan pressure between file and anonymous pages in get_sacn_ratio. 1184 */ 1185 if (!file) 1186 zone->recent_rotated_anon += pgmoved; So, I wondered that there is no need to clear pgmoved before 1156 line. Thanks, Daisuke Nishimura. --
| Andy Whitcroft | Re: 2.6.23-rc6-mm1 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Alan | Re: [RFC] Heads up on sys_fallocate() |
git: | |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Winkler, Tomas | RE: iwlwifi: fix build bug in "iwlwifi: fix LED stall" |
