projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arc: remove support for DISCONTIGMEM
[linux-2.6-microblaze.git]
/
mm
/
migrate.c
diff --git
a/mm/migrate.c
b/mm/migrate.c
index
b234c3f
..
380ca57
100644
(file)
--- a/
mm/migrate.c
+++ b/
mm/migrate.c
@@
-295,6
+295,7
@@
void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep,
goto out;
page = migration_entry_to_page(entry);
goto out;
page = migration_entry_to_page(entry);
+ page = compound_head(page);
/*
* Once page cache replacement of page migration started, page_count
/*
* Once page cache replacement of page migration started, page_count
@@
-1833,8
+1834,8
@@
static void do_pages_stat_array(struct mm_struct *mm, unsigned long nr_pages,
struct page *page;
int err = -EFAULT;
struct page *page;
int err = -EFAULT;
- vma =
find_vma
(mm, addr);
- if (!vma
|| addr < vma->vm_start
)
+ vma =
vma_lookup
(mm, addr);
+ if (!vma)
goto set_status;
/* FOLL_DUMP to ignore special (like zero) pages */
goto set_status;
/* FOLL_DUMP to ignore special (like zero) pages */