History

mm/hugetlb: enable PUD level huge page migration

Architectures like arm64 have PUD level HugeTLB pages for certain configs (1GB huge page is PUD based on ARM64_4K_PAGES base page size) that can be enabled for migration. It can be achieved through checking for PUD_SHIFT order based HugeTLB pages during migration.

Anshuman Khandual committed 7 years ago

Commit 9b553bf1 parent 7ed2c311 file · +2 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/hugetlb.h+2−1
@@ -497,7 +497,8 @@ static inline bool hugepage_migration_supported(struct hstate *h) · 496 unmodified lines
497497 {
498498 #ifdef CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION
499499 if ((huge_page_shift(h) == PMD_SHIFT) ||
500− (huge_page_shift(h) == PGDIR_SHIFT))
500+ (huge_page_shift(h) == PUD_SHIFT) ||
501+ (huge_page_shift(h) == PGDIR_SHIFT))
501502 return true;
502503 else
503504 return false;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t