Commit df42d7a5 authored by Liu Shixin's avatar Liu Shixin
Browse files

mm/huge_memory: fix comment errors of thp_mapping_align

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



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

The 2M anonymous mapping is dependent on BIT2.

Fixes: 08f7407a ("mm: add thp anon pmd size mapping align control")
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 5995e4b0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -213,8 +213,8 @@ possible to enable/disable it by configurate the corresponding bit::

The kernel could try to enable mappings for different sizes, eg, 64K on
arm64, BIT0 for file mapping, BIT1 for anonymous mapping, and THP size
page, BIT3 for anonymous mapping, where 64K anonymous mapping for arm64
is dependent on BIT3 being turned on, the above feature are disabled by
page, BIT2 for anonymous mapping, where 2M anonymous mapping for arm64
is dependent on BIT2 being turned on, the above feature are disabled by
default, and could enable the above feature by writing the corresponding
bit to 1::