Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332463
b: refs/heads/master
c: 0827080
h: refs/heads/master
i:
  332461: 8422205
  332459: d11a9ca
  332455: f61831d
  332447: b87d127
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed Oct 9, 2012
1 parent 31e9a4b commit f021cc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 6bdb913f0a70a4dfb7f066fb15e2d6f960701d00
refs/heads/master: 082708072a4250f5c4dbc62065e7af93f5e45646
11 changes: 7 additions & 4 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,15 +946,18 @@ 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);

vma = check_range(mm, mm->mmap->vm_start, mm->task_size, &nmask,
/*
* This does not "check" the range but isolates all pages that
* need migration. Between passing in the full user address
* space range and MPOL_MF_DISCONTIG_OK, this call can not fail.
*/
VM_BUG_ON(!(flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL)));
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,
Expand Down

0 comments on commit f021cc1

Please sign in to comment.