Commit f7664d01 authored by Ma Wupeng's avatar Ma Wupeng Committed by Yang Yingliang
Browse files

mm: Add more gfp flag check in prepare_before_alloc()

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


CVE: NA

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

Memory allocation from buddy system will fallback to unmirrored memory if
mirrored memory is not enough and reliable memory fallback is closed.
___GFP_NOFAIL flag will be checked in prepare_before_alloc().

Fixes: 45bd608e ("mm: Introduce watermark check for memory reliable")
Signed-off-by: default avatarMa Wupeng <mawupeng1@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 4c480319
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment