mirror_ubuntu-kernels/Documentation/admin-guide/mm
Liu Shixin f498150208 mm/huge_memory: prevent THP_ZERO_PAGE_ALLOC increased twice
A user who reads THP_ZERO_PAGE_ALLOC may be more concerned about the huge
zero pages that are really allocated for thp.  It is misleading to
increase THP_ZERO_PAGE_ALLOC twice if two threads call get_huge_zero_page
concurrently.  Don't increase the value if the huge page is not really
used.

Update Documentation/admin-guide/mm/transhuge.rst to suit.

Link: https://lkml.kernel.org/r/20220909021653.3371879-1-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-10-03 14:03:08 -07:00
..
damon Docs/admin-guide/mm/damon/usage: note DAMON debugfs interface deprecation plan 2022-10-03 14:03:07 -07:00
cma_debugfs.rst mm/cma_debug: show complete cma name in debugfs directories 2022-09-11 20:25:50 -07:00
concepts.rst docs: rename Documentation/vm to Documentation/mm 2022-06-27 12:52:53 -07:00
hugetlbpage.rst mm: hugetlb_vmemmap: introduce the name HVO 2022-08-08 18:06:42 -07:00
idle_page_tracking.rst tools/vm/page-types.c: add support for idle page tracking 2018-08-17 16:20:28 -07:00
index.rst mm: multi-gen LRU: admin guide 2022-09-26 19:46:10 -07:00
ksm.rst ksm: add profit monitoring documentation 2022-09-26 19:46:29 -07:00
memory-hotplug.rst mm: hugetlb_vmemmap: introduce the name HVO 2022-08-08 18:06:42 -07:00
multigen_lru.rst mm: multi-gen LRU: admin guide 2022-09-26 19:46:10 -07:00
nommu-mmap.rst docs: move nommu-mmap.txt to admin-guide and rename to ReST 2020-06-26 11:33:35 -06:00
numa_memory_policy.rst mm/mempolicy: add set_mempolicy_home_node syscall 2022-01-15 16:30:30 +02:00
numaperf.rst Documentation: Add leading slash to some paths 2021-03-31 13:49:19 -06:00
pagemap.rst proc: fix documentation and description of pagemap 2022-03-05 11:08:33 -08:00
shrinker_debugfs.rst mm: shrinkers: add scan interface for shrinker debugfs 2022-07-03 18:08:41 -07:00
soft-dirty.rst
swap_numa.rst Documentation/vm: move user guides to admin-guide/mm/ 2021-11-06 13:30:44 -07:00
transhuge.rst mm/huge_memory: prevent THP_ZERO_PAGE_ALLOC increased twice 2022-10-03 14:03:08 -07:00
userfaultfd.rst userfaultfd: update documentation to describe /dev/userfaultfd 2022-09-11 20:25:49 -07:00
zswap.rst mm/zswap.c: allow handling just same-value filled pages 2022-03-22 15:57:11 -07:00