Commit 239fdf8b authored by ZhangPeng's avatar ZhangPeng Committed by Ma Wupeng
Browse files

userswap: add handling of ZERO_PAGE

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



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

We call follow_page() with FOLL_DUMP to handle ZERO_PAGE. Although
FOLL_DUMP is intended for get_dump_page(), it just so happens that its
special treatment of the ZERO_PAGE (returning an error instead of doing
get_page) suits uswap very well. If somehow an abnormal page has sneaked
into the range, we won't oops here.

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