Commit ec625021 authored by ZhangPeng's avatar ZhangPeng Committed by Peng Zhang
Browse files

mm/userswap: add VM_USWAP and SWP_USERSWAP_ENTRY

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8KESX


CVE: NA

--------------------------------

VM_USWAP gets set in vma->vm_flags to tell the VM common code that the
userswap is registered. SWP_USERSWAP_ENTRY is the swap entry when
userswap memory is swapped out. In addition, is_userswap_entry() is
introduced to determine whether the entry is a userswap swap entry. Add
the userswap entry case in zap_pte_range() to prevent WARN_ON_ONCE(1).

Signed-off-by: default avatarZhangPeng <zhangpeng362@huawei.com>
parent cb1b64b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment