aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorBaolin Wang <[email protected]>2024-06-11 10:11:09 +0000
committerAndrew Morton <[email protected]>2024-07-04 02:30:04 +0000
commit5a9dd10380a16b343aa87d80d5bcc24409a03f5b (patch)
treea912d3b6f87781055cc2e6769735bc8835101aa8 /lib/test_xarray.c
parentmm: shmem: add mTHP support for anonymous shmem (diff)
downloadkernel-5a9dd10380a16b343aa87d80d5bcc24409a03f5b.tar.gz
kernel-5a9dd10380a16b343aa87d80d5bcc24409a03f5b.zip
mm: shmem: add mTHP size alignment in shmem_get_unmapped_area
Although the top-level hugepage allocation can be turned off, anonymous shmem can still use mTHP by configuring the sysfs interface located at '/sys/kernel/mm/transparent_hugepage/hugepage-XXkb/shmem_enabled'. Therefore, add alignment for mTHP size to provide a suitable alignment address in shmem_get_unmapped_area(). Link: https://lkml.kernel.org/r/0c549b57cf7db07503af692d8546ecfad0fcce52.1718090413.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <[email protected]> Tested-by: Lance Yang <[email protected]> Cc: Barry Song <[email protected]> Cc: Daniel Gomez <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: "Huang, Ying" <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: Pankaj Raghav <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Yang Shi <[email protected]> Cc: Zi Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions