projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5beb493
)
rmap: remove obsolete check from __page_check_anon_rmap()
author
Rik van Riel
<
[email protected]
>
Fri, 5 Mar 2010 21:42:08 +0000
(13:42 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Mar 2010 19:26:26 +0000
(11:26 -0800)
When an anonymous page is inherited from a parent process, the
vma->anon_vma can differ from the page anon_vma. This can trip up
__page_check_anon_rmap, which is indirectly called from do_swap_page().
Remove that obsolete check to prevent an oops.
Signed-off-by: Rik van Riel <
[email protected]
>
Cc: KOSAKI Motohiro <
[email protected]
>
Cc: Larry Woodman <
[email protected]
>
Cc: Lee Schermerhorn <
[email protected]
>
Reviewed-by: Minchan Kim <
[email protected]
>
Cc: Andrea Arcangeli <
[email protected]
>
Cc: Hugh Dickins <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/rmap.c
patch
|
blob
|
history
diff --git
a/mm/rmap.c
b/mm/rmap.c
index be34094e459565f6570ae0eb1ef46d8ec4909786..23ecd0a892df600665f618aabd1ba2f522bc6387 100644
(file)
--- a/
mm/rmap.c
+++ b/
mm/rmap.c
@@
-754,9
+754,6
@@
static void __page_check_anon_rmap(struct page *page,
* are initially only visible via the pagetables, and the pte is locked
* over the call to page_add_new_anon_rmap.
*/
- struct anon_vma *anon_vma = vma->anon_vma;
- anon_vma = (void *) anon_vma + PAGE_MAPPING_ANON;
- BUG_ON(page->mapping != (struct address_space *)anon_vma);
BUG_ON(page->index != linear_page_index(vma, address));
#endif
}