ksm.c (d85ddd1318e66c0c2665dbfcbc21a8b66c9152aa) | ksm.c (12564485ed8caac3c18572793ec01330792c7191) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Memory merging support. 4 * 5 * This code enables dynamic sharing of identical pages found in different 6 * memory areas, even if they are not shared by fork() 7 * 8 * Copyright (C) 2008-2009 Red Hat, Inc. --- 2439 unchanged lines hidden (view full) --- 2448 if (*vm_flags & (VM_MERGEABLE | VM_SHARED | VM_MAYSHARE | 2449 VM_PFNMAP | VM_IO | VM_DONTEXPAND | 2450 VM_HUGETLB | VM_MIXEDMAP)) 2451 return 0; /* just ignore the advice */ 2452 2453 if (vma_is_dax(vma)) 2454 return 0; 2455 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Memory merging support. 4 * 5 * This code enables dynamic sharing of identical pages found in different 6 * memory areas, even if they are not shared by fork() 7 * 8 * Copyright (C) 2008-2009 Red Hat, Inc. --- 2439 unchanged lines hidden (view full) --- 2448 if (*vm_flags & (VM_MERGEABLE | VM_SHARED | VM_MAYSHARE | 2449 VM_PFNMAP | VM_IO | VM_DONTEXPAND | 2450 VM_HUGETLB | VM_MIXEDMAP)) 2451 return 0; /* just ignore the advice */ 2452 2453 if (vma_is_dax(vma)) 2454 return 0; 2455 |
2456#ifdef VM_SAO 2457 if (*vm_flags & VM_SAO) 2458 return 0; 2459#endif |
|
2456#ifdef VM_SPARC_ADI 2457 if (*vm_flags & VM_SPARC_ADI) 2458 return 0; 2459#endif 2460 2461 if (!test_bit(MMF_VM_MERGEABLE, &mm->flags)) { 2462 err = __ksm_enter(mm); 2463 if (err) --- 758 unchanged lines hidden --- | 2460#ifdef VM_SPARC_ADI 2461 if (*vm_flags & VM_SPARC_ADI) 2462 return 0; 2463#endif 2464 2465 if (!test_bit(MMF_VM_MERGEABLE, &mm->flags)) { 2466 err = __ksm_enter(mm); 2467 if (err) --- 758 unchanged lines hidden --- |