forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: hugetlb_vmemmap: introduce the name HVO
It it inconvenient to mention the feature of optimizing vmemmap pages associated with HugeTLB pages when communicating with others since there is no specific or abbreviated name for it when it is first introduced. Let us give it a name HVO (HugeTLB Vmemmap Optimization) from now. This commit also updates the document about "hugetlb_free_vmemmap" by the way discussed in thread [1]. Link: https://lore.kernel.org/all/[email protected]/ [1] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Muchun Song <[email protected]> Reviewed-by: Oscar Salvador <[email protected]> Reviewed-by: Mike Kravetz <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Will Deacon <[email protected]> Cc: Xiongchun Duan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information
Showing
9 changed files
with
23 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* Optimize vmemmap pages associated with HugeTLB | ||
* HugeTLB Vmemmap Optimization (HVO) | ||
* | ||
* Copyright (c) 2020, Bytedance. All rights reserved. | ||
* Copyright (c) 2020, ByteDance. All rights reserved. | ||
* | ||
* Author: Muchun Song <[email protected]> | ||
* | ||
|
@@ -156,8 +156,8 @@ void __init hugetlb_vmemmap_init(struct hstate *h) | |
|
||
/* | ||
* There are only (RESERVE_VMEMMAP_SIZE / sizeof(struct page)) struct | ||
* page structs that can be used when CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP, | ||
* so add a BUILD_BUG_ON to catch invalid usage of the tail struct page. | ||
* page structs that can be used when HVO is enabled, add a BUILD_BUG_ON | ||
* to catch invalid usage of the tail page structs. | ||
*/ | ||
BUILD_BUG_ON(__NR_USED_SUBPAGE >= | ||
RESERVE_VMEMMAP_SIZE / sizeof(struct page)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* Optimize vmemmap pages associated with HugeTLB | ||
* HugeTLB Vmemmap Optimization (HVO) | ||
* | ||
* Copyright (c) 2020, Bytedance. All rights reserved. | ||
* Copyright (c) 2020, ByteDance. All rights reserved. | ||
* | ||
* Author: Muchun Song <[email protected]> | ||
*/ | ||
|