diff options
Diffstat (limited to 'include/linux/ksm.h')
-rw-r--r-- | include/linux/ksm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ksm.h b/include/linux/ksm.h index 43bdab769fc3..74d691ee9121 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h | |||
@@ -78,7 +78,7 @@ static inline struct page *ksm_might_need_to_copy(struct page *page, | |||
78 | struct anon_vma *anon_vma = page_anon_vma(page); | 78 | struct anon_vma *anon_vma = page_anon_vma(page); |
79 | 79 | ||
80 | if (!anon_vma || | 80 | if (!anon_vma || |
81 | (anon_vma == vma->anon_vma && | 81 | (anon_vma->root == vma->anon_vma->root && |
82 | page->index == linear_page_index(vma, address))) | 82 | page->index == linear_page_index(vma, address))) |
83 | return page; | 83 | return page; |
84 | 84 | ||