1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright (c) 2023 Huawei Device Co., Ltd. 4 */ 5 6 #include "xpm_common.h" 7 xpm_is_anonymous_vma(struct vm_area_struct *vma)8bool xpm_is_anonymous_vma(struct vm_area_struct *vma) 9 { 10 return vma_is_anonymous(vma) || vma_is_shmem(vma); 11 } 12