mirror of https://gitee.com/openkylin/linux.git
de3b87611d
Introduce a helper pgtable_gfp_flags() which
just returns the current gfp flags and adds
__GFP_ACCOUNT to account for page table allocation.
The generic helper is added to include/asm/pgalloc.h
and has two variants - WARNING ugly bits ahead
1. If the header is included from a module, no check
for mm == &init_mm is done, since init_mm is not
exported
2. For kernel includes, the check is done and required
see (
|
||
---|---|---|
.. | ||
pgalloc.h | ||
pgtable-4k.h | ||
pgtable-64k.h | ||
pgtable.h |