diff options
| author | Kefeng Wang <[email protected]> | 2023-09-13 17:51:30 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-10-04 10:32:28 -0700 |
| commit | b426ed7889be80359cb4edef142e5c5fa697b068 (patch) | |
| tree | 3d79fb3f46dbac0af7d225162cb19f2a4f3c221a /include/linux/debugobjects.h | |
| parent | d64cfccbc805663a2c5691f638cf9198b9676a9f (diff) | |
mm: migrate: remove PageHead() check for HugeTLB in add_page_for_migration()
There is some different between hugeTLB and THP behave when passed the
address of a tail page, for THP, it will migrate the entire THP page, but
for HugeTLB, it will return -EACCES, or -ENOENT before commit e66f17ff7177
("mm/hugetlb: take page table lock in follow_huge_pmd()"),
-EACCES The page is mapped by multiple processes and can be moved
only if MPOL_MF_MOVE_ALL is specified.
-ENOENT The page is not present.
But when check manual[1], both of the two errnos are not suitable, it is
better to keep the same behave between hugetlb and THP when passed the
address of a tail page, so let's just remove the PageHead() check for
HugeTLB.
[1] https://man7.org/linux/man-pages/man2/move_pages.2.html
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kefeng Wang <[email protected]>
Suggested-by: Mike Kravetz <[email protected]>
Acked-by: Zi Yan <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: "Huang, Ying" <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions