+0
−6
+28
−52
+1
−2
Loading
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAKLTF -------------------------------- In commit 08f7407a ("mm: add thp anon pmd size mapping align control"), we add a control to pmd size anouymous mapping align. But not as the name shows, it controls 64K anonymous mapping align too, which is so weird. To fix it, we move thp_anon_mapping_pmd_align into thp_get_unmapped_area(). And allow user to enable 64K anouymous mapping align without enable pmd size anouymous mapping align. By the way, refactor the code of mapping align to make it more readable. Signed-off-by:Liu Shixin <liushixin2@huawei.com>