commit | d7ab3672c3ff7b2a2be3f15fcee77414fd9c4d7a | [log] [tgz] |
---|---|---|
author | Michal Hocko <[email protected]> | Wed Nov 15 17:33:30 2017 -0800 |
committer | Linus Torvalds <[email protected]> | Wed Nov 15 18:21:02 2017 -0800 |
tree | 5cc80867151e0838241c92cc9e3c1446fa6a192c | |
parent | 4da2ce250f986060750fcc5b29112914e31803ba [diff] |
mm, page_alloc: fail has_unmovable_pages when seeing reserved pages Reserved pages should be completely ignored by the core mm because they have a special meaning for their owners. has_unmovable_pages doesn't check those so we rely on other tests (reference count, or PageLRU) to fail on such pages. Althought this happens to work it is safer to simply check for those explicitly and do not rely on the owner of the page to abuse those fields for special purposes. Please note that this is more of a further fortification of the code rahter than a fix of an existing issue. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Michal Hocko <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Igor Mammedov <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Reza Arbab <[email protected]> Cc: Vitaly Kuznetsov <[email protected]> Cc: Xishi Qiu <[email protected]> Cc: Yasuaki Ishimatsu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>