diff --git a/mm/ksm.c b/mm/ksm.c index cb46fd7890bec7e68184d9d905599860f705bf68..e0f85ee99d32efd4089a76223561b660cad35ab0 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include "internal.h" @@ -2458,6 +2459,9 @@ int ksm_madvise(struct vm_area_struct *vma, unsigned long start, if (vma_is_dax(vma)) return 0; + if (is_cdm_vma(vma)) + return 0; + #ifdef VM_SAO if (*vm_flags & VM_SAO) return 0;