diff options
| author | Ingo Molnar <mingo@elte.hu> | 2011-02-16 07:33:35 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2011-02-16 07:33:41 -0500 |
| commit | a3ec4a603faf4244e275bf11b467aad092dfbd8a (patch) | |
| tree | 1c15009716b37629070ea221a00eb9fe2303a317 /mm/migrate.c | |
| parent | 51563cd53c4b1c1790fccd2e0af0e2b756589af9 (diff) | |
| parent | 85e2efbb1db9a18d218006706d6e4fbeb0216213 (diff) | |
Merge commit 'v2.6.38-rc5' into core/locking
Merge reason: pick up upstream fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm/migrate.c')
| -rw-r--r-- | mm/migrate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 9f29a3b7aac2..766115253807 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
| @@ -772,6 +772,7 @@ uncharge: | |||
| 772 | unlock: | 772 | unlock: |
| 773 | unlock_page(page); | 773 | unlock_page(page); |
| 774 | 774 | ||
| 775 | move_newpage: | ||
| 775 | if (rc != -EAGAIN) { | 776 | if (rc != -EAGAIN) { |
| 776 | /* | 777 | /* |
| 777 | * A page that has been migrated has all references | 778 | * A page that has been migrated has all references |
| @@ -785,8 +786,6 @@ unlock: | |||
| 785 | putback_lru_page(page); | 786 | putback_lru_page(page); |
| 786 | } | 787 | } |
| 787 | 788 | ||
| 788 | move_newpage: | ||
| 789 | |||
| 790 | /* | 789 | /* |
| 791 | * Move the new page to the LRU. If migration was not successful | 790 | * Move the new page to the LRU. If migration was not successful |
| 792 | * then this will free the page. | 791 | * then this will free the page. |
| @@ -981,10 +980,6 @@ int migrate_huge_pages(struct list_head *from, | |||
| 981 | } | 980 | } |
| 982 | rc = 0; | 981 | rc = 0; |
| 983 | out: | 982 | out: |
| 984 | |||
| 985 | list_for_each_entry_safe(page, page2, from, lru) | ||
| 986 | put_page(page); | ||
| 987 | |||
| 988 | if (rc) | 983 | if (rc) |
| 989 | return rc; | 984 | return rc; |
| 990 | 985 | ||
