PageAnon() and PageKsm() look at lower bits of page->mapping to check if
the page is Anon or KSM. page->mapping can be overloaded in tail pages.
Let's always look at head page to avoid false-positives.
Signed-off-by: Kirill A. Shutemov
---
include/linux/page-flags.h | 2 ++
1 file changed, 2
PageAnon() and PageKsm() look at lower bits of page->mapping to check if
the page is Anon or KSM. page->mapping can be overloaded in tail pages.
Let's always look at head page to avoid false-positives.
Signed-off-by: Kirill A. Shutemov
---
PageAnon() and PageKsm() look on lower bits of page->mapping to check if
the page is Anon or KSM. page->mapping can be overloaded in tail pages.
Let's always look on head page to avoid false-positives.
Signed-off-by: Kirill A. Shutemov
---
include/linux/page-flags.h | 2 ++
1 file changed, 2
PageAnon() and PageKsm() look on lower bits of page-mapping to check if
the page is Anon or KSM. page-mapping can be overloaded in tail pages.
Let's always look on head page to avoid false-positives.
Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com
---
4 matches
Mail list logo