dolohow / uksm

Ultra Kernel Samepage Merging
242 stars 35 forks source link

Please add support for linux-5.16 #75

Closed ruslanvkarmanov closed 2 years ago

ruslanvkarmanov commented 2 years ago

Rejected part of mm/ksm.c:

--- mm/ksm.c +++ mm/ksm.c @@ -852,17 +852,6 @@ static int unmerge_ksm_pages(struct vm_area_struct *vma, return err; }

-static inline struct stable_node page_stable_node(struct page page) -{ - return PageKsm(page) ? page_rmapping(page) : NULL; -} - -static inline void set_page_stable_node(struct page page, - struct stable_node stable_node) -{ - page->mapping = (void )((unsigned long)stable_node | PAGE_MAPPING_KSM); -} - #ifdef CONFIG_SYSFS \/ * Only called through the sysfs control interface:

sirlucjan commented 2 years ago

Please look at #77

ruslanvkarmanov commented 2 years ago

Thanks!