Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217449
b: refs/heads/master
c: 0def08e
h: refs/heads/master
i:
  217447: 4f9518e
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Linus Torvalds committed Oct 26, 2010
1 parent 9263e9b commit e609981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 74e3f3c3391d81a959f58a1191a560703a4415b4
refs/heads/master: 0def08e3acc2c9c934e4671487029aed52202d42
5 changes: 4 additions & 1 deletion trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,12 +924,15 @@ static int migrate_to_node(struct mm_struct *mm, int source, int dest,
nodemask_t nmask;
LIST_HEAD(pagelist);
int err = 0;
struct vm_area_struct *vma;

nodes_clear(nmask);
node_set(source, nmask);

check_range(mm, mm->mmap->vm_start, mm->task_size, &nmask,
vma = check_range(mm, mm->mmap->vm_start, mm->task_size, &nmask,
flags | MPOL_MF_DISCONTIG_OK, &pagelist);
if (IS_ERR(vma))
return PTR_ERR(vma);

if (!list_empty(&pagelist)) {
err = migrate_pages(&pagelist, new_node_page, dest, 0);
Expand Down

0 comments on commit e609981

Please sign in to comment.