Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164371
b: refs/heads/master
c: abfc348
h: refs/heads/master
i:
  164369: 68821c8
  164367: 9a3da1d
v: v3
  • Loading branch information
Shaohua Li authored and Linus Torvalds committed Sep 22, 2009
1 parent 673ce36 commit c3ee826
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: f52407ce2deac76c87abc8211a63ea152ba72d54
refs/heads/master: abfc3488118d48a2b8cce5a2345901aac6b03fee
6 changes: 4 additions & 2 deletions trunk/mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static void remove_migration_pte(struct vm_area_struct *vma,
static void remove_file_migration_ptes(struct page *old, struct page *new)
{
struct vm_area_struct *vma;
struct address_space *mapping = page_mapping(new);
struct address_space *mapping = new->mapping;
struct prio_tree_iter iter;
pgoff_t pgoff = new->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT);

Expand Down Expand Up @@ -664,13 +664,15 @@ static int unmap_and_move(new_page_t get_new_page, unsigned long private,
* needs to be effective.
*/
try_to_free_buffers(page);
goto rcu_unlock;
}
goto rcu_unlock;
goto skip_unmap;
}

/* Establish migration ptes or remove ptes */
try_to_unmap(page, 1);

skip_unmap:
if (!page_mapped(page))
rc = move_to_new_page(newpage, page);

Expand Down

0 comments on commit c3ee826

Please sign in to comment.