[PATCH 1/3] page-flags: do not corrupt caller 'page' in PF_NO_TAIL

2015-10-01 Thread Kirill A. Shutemov
Andrew noticed that PF_NO_TAIL() modifies caller's 'page'. This doesn't trigger any bad results, because all users are inline functions which doesn't use the variable beyond the point. But still not good. The patch changes PF_NO_TAIL() to always return head page, regardless 'enforce'. This makes

[PATCH 1/3] page-flags: do not corrupt caller 'page' in PF_NO_TAIL

2015-10-01 Thread Kirill A. Shutemov
Andrew noticed that PF_NO_TAIL() modifies caller's 'page'. This doesn't trigger any bad results, because all users are inline functions which doesn't use the variable beyond the point. But still not good. The patch changes PF_NO_TAIL() to always return head page, regardless 'enforce'. This makes