[PATCH 15/16] page-flags: look at head page if the flag is encoded in page->mapping

2015-09-24 Thread Kirill A. Shutemov
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

[PATCH 15/16] page-flags: look at head page if the flag is encoded in page->mapping

2015-09-24 Thread Kirill A. Shutemov
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 ---

[PATCH 15/16] page-flags: look on head page if the flag is encoded in page->mapping

2015-03-19 Thread 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

[PATCH 15/16] page-flags: look on head page if the flag is encoded in page-mapping

2015-03-19 Thread 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 kirill.shute...@linux.intel.com ---