]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/ksm.h
mm: migrate: support non-lru movable page migration
[karo-tx-linux.git] / include / linux / ksm.h
index 7ae216a39c9e97455db75e0d7fb5ba04b53ccbe8..481c8c4627ca2268b4aec6f5c0f026d894240983 100644 (file)
@@ -43,8 +43,7 @@ static inline struct stable_node *page_stable_node(struct page *page)
 static inline void set_page_stable_node(struct page *page,
                                        struct stable_node *stable_node)
 {
-       page->mapping = (void *)stable_node +
-                               (PAGE_MAPPING_ANON | PAGE_MAPPING_KSM);
+       page->mapping = (void *)((unsigned long)stable_node | PAGE_MAPPING_KSM);
 }
 
 /*