Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126244
b: refs/heads/master
c: b555749
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jan 6, 2009
1 parent b11702d commit e928b5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 1e9e63650d6cb88e6d6d2ca6cc3ee276c26de4a3
refs/heads/master: b555749aac87d7c2637f153e44bd77c7fdf4c65b
14 changes: 7 additions & 7 deletions trunk/mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,13 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
list_add(&page->lru, &l_inactive);
}

/*
* Move the pages to the [file or anon] inactive list.
*/
pagevec_init(&pvec, 1);
pgmoved = 0;
lru = LRU_BASE + file * LRU_FILE;

spin_lock_irq(&zone->lru_lock);
/*
* Count referenced pages from currently used mappings as
Expand All @@ -1247,13 +1254,6 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
if (scan_global_lru(sc))
zone->recent_rotated[!!file] += pgmoved;

/*
* Move the pages to the [file or anon] inactive list.
*/
pagevec_init(&pvec, 1);

pgmoved = 0;
lru = LRU_BASE + file * LRU_FILE;
while (!list_empty(&l_inactive)) {
page = lru_to_page(&l_inactive);
prefetchw_prev_lru_page(page, &l_inactive, flags);
Expand Down

0 comments on commit e928b5a

Please sign in to comment.