diff options
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 8778f58880c4..244f3f130e4a 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -603,11 +603,8 @@ int migrate_to_node(struct mm_struct *mm, int source, int dest, int flags) | |||
603 | check_range(mm, mm->mmap->vm_start, TASK_SIZE, &nmask, | 603 | check_range(mm, mm->mmap->vm_start, TASK_SIZE, &nmask, |
604 | flags | MPOL_MF_DISCONTIG_OK, &pagelist); | 604 | flags | MPOL_MF_DISCONTIG_OK, &pagelist); |
605 | 605 | ||
606 | if (!list_empty(&pagelist)) { | 606 | if (!list_empty(&pagelist)) |
607 | err = migrate_pages_to(&pagelist, NULL, dest); | 607 | err = migrate_pages_to(&pagelist, NULL, dest); |
608 | if (!list_empty(&pagelist)) | ||
609 | putback_lru_pages(&pagelist); | ||
610 | } | ||
611 | return err; | 608 | return err; |
612 | } | 609 | } |
613 | 610 | ||
@@ -773,9 +770,6 @@ long do_mbind(unsigned long start, unsigned long len, | |||
773 | err = -EIO; | 770 | err = -EIO; |
774 | } | 771 | } |
775 | 772 | ||
776 | if (!list_empty(&pagelist)) | ||
777 | putback_lru_pages(&pagelist); | ||
778 | |||
779 | up_write(&mm->mmap_sem); | 773 | up_write(&mm->mmap_sem); |
780 | mpol_free(new); | 774 | mpol_free(new); |
781 | return err; | 775 | return err; |