Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308909
b: refs/heads/master
c: 6a18adb
h: refs/heads/master
i:
  308907: bdd9231
v: v3
  • Loading branch information
Konstantin Khlebnikov authored and Linus Torvalds committed May 29, 2012
1 parent 893690d commit 9b61ada
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5dc35979e444b50d5551bdeb7a7abc5c69c875d0
refs/heads/master: 6a18adb35c27848195c938b0779ce882d63d3ed1
11 changes: 5 additions & 6 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ enum page_references {
};

static enum page_references page_check_references(struct page *page,
struct mem_cgroup_zone *mz,
struct scan_control *sc)
{
int referenced_ptes, referenced_page;
Expand Down Expand Up @@ -688,7 +687,7 @@ static enum page_references page_check_references(struct page *page,
* shrink_page_list() returns the number of reclaimed pages
*/
static unsigned long shrink_page_list(struct list_head *page_list,
struct mem_cgroup_zone *mz,
struct zone *zone,
struct scan_control *sc,
unsigned long *ret_nr_dirty,
unsigned long *ret_nr_writeback)
Expand Down Expand Up @@ -718,7 +717,7 @@ static unsigned long shrink_page_list(struct list_head *page_list,
goto keep;

VM_BUG_ON(PageActive(page));
VM_BUG_ON(page_zone(page) != mz->zone);
VM_BUG_ON(page_zone(page) != zone);

sc->nr_scanned++;

Expand All @@ -741,7 +740,7 @@ static unsigned long shrink_page_list(struct list_head *page_list,
goto keep;
}

references = page_check_references(page, mz, sc);
references = page_check_references(page, sc);
switch (references) {
case PAGEREF_ACTIVATE:
goto activate_locked;
Expand Down Expand Up @@ -931,7 +930,7 @@ static unsigned long shrink_page_list(struct list_head *page_list,
* will encounter the same problem
*/
if (nr_dirty && nr_dirty == nr_congested && global_reclaim(sc))
zone_set_flag(mz->zone, ZONE_CONGESTED);
zone_set_flag(zone, ZONE_CONGESTED);

free_hot_cold_page_list(&free_pages, 1);

Expand Down Expand Up @@ -1309,7 +1308,7 @@ shrink_inactive_list(unsigned long nr_to_scan, struct mem_cgroup_zone *mz,

update_isolated_counts(mz, &page_list, &nr_anon, &nr_file);

nr_reclaimed = shrink_page_list(&page_list, mz, sc,
nr_reclaimed = shrink_page_list(&page_list, zone, sc,
&nr_dirty, &nr_writeback);

spin_lock_irq(&zone->lru_lock);
Expand Down

0 comments on commit 9b61ada

Please sign in to comment.