Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230805
b: refs/heads/master
c: 9992af1
h: refs/heads/master
i:
  230803: 4ee30f8
v: v3
  • Loading branch information
Rik van Riel authored and Linus Torvalds committed Jan 14, 2011
1 parent bd9b176 commit dc9d2a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 2c888cfbc1b45508a44763d85ba2e8ac43faff5f
refs/heads/master: 9992af102974f3f8a02a1f2729c3461881539e26
5 changes: 3 additions & 2 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,8 @@ putback_lru_pages(struct zone *zone, struct scan_control *sc,
add_page_to_lru_list(zone, page, lru);
if (is_active_lru(lru)) {
int file = is_file_lru(lru);
reclaim_stat->recent_rotated[file]++;
int numpages = hpage_nr_pages(page);
reclaim_stat->recent_rotated[file] += numpages;
}
if (!pagevec_add(&pvec, page)) {
spin_unlock_irq(&zone->lru_lock);
Expand Down Expand Up @@ -1552,7 +1553,7 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
}

if (page_referenced(page, 0, sc->mem_cgroup, &vm_flags)) {
nr_rotated++;
nr_rotated += hpage_nr_pages(page);
/*
* Identify referenced, file-backed active pages and
* give them one more trip around the active list. So
Expand Down

0 comments on commit dc9d2a4

Please sign in to comment.