Commit 92751dfb authored by ZhangPeng's avatar ZhangPeng Committed by Ma Wupeng
Browse files

userswap: add page_count() check for swap-out VA

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6CAIM



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

Add page_count() check for swap-out VA to make sure that no other kernel
mechanism is using this physical page.
Add lru_add_drain_all() before swap-out VA to correct page_count() of
swap-out pages.

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