Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176239
b: refs/heads/master
c: 6d9c285
h: refs/heads/master
i:
  176237: 5395115
  176235: 86ea9a2
  176231: 38cb07b
  176223: 7640d02
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Dec 15, 2009
1 parent d5820e6 commit 8705813
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 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: ee32398fda8ab9867cf8d5469d6e83de5f5c1f7c
refs/heads/master: 6d9c285a632b39ab83c6ae14cbff0e606d4042ee
4 changes: 4 additions & 0 deletions trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/page-isolation.h>
#include <linux/pfn.h>
#include <linux/suspend.h>
#include <linux/mm_inline.h>

#include <asm/tlbflush.h>

Expand Down Expand Up @@ -672,6 +673,9 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn)
if (!ret) { /* Success */
list_add_tail(&page->lru, &source);
move_pages--;
inc_zone_page_state(page, NR_ISOLATED_ANON +
page_is_file_cache(page));

} else {
/* Becasue we don't have big zone->lock. we should
check this again here. */
Expand Down
3 changes: 3 additions & 0 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
#include <linux/security.h>
#include <linux/syscalls.h>
#include <linux/ctype.h>
#include <linux/mm_inline.h>

#include <asm/tlbflush.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -809,6 +810,8 @@ static void migrate_page_add(struct page *page, struct list_head *pagelist,
if ((flags & MPOL_MF_MOVE_ALL) || page_mapcount(page) == 1) {
if (!isolate_lru_page(page)) {
list_add_tail(&page->lru, pagelist);
inc_zone_page_state(page, NR_ISOLATED_ANON +
page_is_file_cache(page));
}
}
}
Expand Down
12 changes: 4 additions & 8 deletions trunk/mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,13 +746,6 @@ int migrate_pages(struct list_head *from,
struct page *page2;
int swapwrite = current->flags & PF_SWAPWRITE;
int rc;
unsigned long flags;

local_irq_save(flags);
list_for_each_entry(page, from, lru)
__inc_zone_page_state(page, NR_ISOLATED_ANON +
page_is_file_cache(page));
local_irq_restore(flags);

if (!swapwrite)
current->flags |= PF_SWAPWRITE;
Expand Down Expand Up @@ -878,8 +871,11 @@ static int do_move_page_to_node_array(struct mm_struct *mm,
goto put_and_set;

err = isolate_lru_page(page);
if (!err)
if (!err) {
list_add_tail(&page->lru, &pagelist);
inc_zone_page_state(page, NR_ISOLATED_ANON +
page_is_file_cache(page));
}
put_and_set:
/*
* Either remove the duplicate refcount from
Expand Down

0 comments on commit 8705813

Please sign in to comment.