Kefeng Wang
b426ed7889
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 e66f17ff71
("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/20230913095131.2426871-8-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Suggested-by: Mike Kravetz <mike.kravetz@oracle.com>
Acked-by: Zi Yan <ziy@nvidia.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-10-04 10:32:28 -07:00
..
2023-10-04 10:32:21 -07:00
2023-09-20 14:26:29 +08:00
2023-09-08 12:16:52 -07:00
2023-10-04 10:32:22 -07:00
2023-08-21 13:37:48 -07:00
2023-08-29 20:32:10 -07:00
2023-10-04 10:32:19 -07:00
2023-06-09 16:25:23 -07:00
2023-08-31 12:20:12 -07:00
2023-06-09 16:25:31 -07:00
2023-04-05 19:42:38 -07:00
2023-06-09 16:25:17 -07:00
2023-06-09 16:25:56 -07:00
2023-06-23 16:59:31 -07:00
2023-06-09 16:25:23 -07:00
2023-09-29 17:20:45 -07:00
2023-07-24 18:04:30 -04:00
2023-06-23 16:58:19 -07:00
2023-08-31 12:20:12 -07:00
2023-06-19 16:19:25 -07:00
2023-08-21 13:07:20 -07:00
2023-10-04 10:32:28 -07:00
2023-10-04 10:32:22 -07:00
2023-10-04 10:32:19 -07:00
2023-08-21 13:37:46 -07:00
2023-10-04 10:32:23 -07:00
2023-08-18 10:12:36 -07:00
2023-10-04 10:32:20 -07:00
2023-05-29 16:14:28 +01:00
2023-08-29 14:25:26 -07:00
2023-09-02 15:17:34 -07:00
2023-09-05 11:11:52 -07:00
2023-04-12 17:36:23 -07:00
2023-10-04 10:32:20 -07:00
2023-10-04 10:32:23 -07:00
2023-08-24 16:20:30 -07:00
2023-08-21 13:37:43 -07:00
2023-10-04 10:32:27 -07:00
2023-10-04 10:32:22 -07:00
2023-08-21 13:37:49 -07:00
2023-10-04 10:32:20 -07:00
2023-08-18 10:12:38 -07:00
2023-10-04 10:32:28 -07:00
2023-09-29 17:20:48 -07:00
2023-08-21 13:37:47 -07:00
2023-08-31 12:20:12 -07:00
2023-10-04 10:32:28 -07:00
2023-08-21 13:07:20 -07:00
2023-08-21 14:26:20 -07:00
2023-10-04 10:32:22 -07:00
2023-10-04 10:32:21 -07:00
2023-08-24 16:20:30 -07:00
2023-08-18 10:12:41 -07:00
2023-08-31 12:20:12 -07:00
2023-10-04 10:32:20 -07:00
2023-08-31 12:20:12 -07:00
2023-08-21 13:37:44 -07:00
2023-09-19 13:21:32 -07:00
2023-08-18 10:12:31 -07:00
2023-10-04 10:32:27 -07:00
2023-08-18 10:12:39 -07:00
2023-08-21 13:37:27 -07:00
2023-08-21 13:37:30 -07:00
2023-04-05 19:42:46 -07:00
2023-08-24 16:20:18 -07:00
2023-08-18 10:12:13 -07:00
2023-08-21 14:52:16 +02:00
2023-09-02 08:39:21 -07:00
2023-06-19 16:19:29 -07:00
2023-08-25 08:04:59 -07:00
2023-08-18 10:12:25 -07:00
2023-06-09 16:25:25 -07:00
2023-06-19 16:19:24 -07:00
2023-07-24 18:04:30 -04:00
2023-10-04 10:32:27 -07:00
2023-08-21 13:38:02 -07:00
2023-08-09 09:15:40 +02:00
2023-10-04 10:32:22 -07:00
2023-10-04 10:32:19 -07:00
2023-10-04 10:32:26 -07:00
2023-10-04 10:32:26 -07:00
2023-04-05 19:42:46 -07:00
2023-09-29 12:10:12 -07:00
2023-07-18 10:07:47 +02:00
2023-07-18 10:07:47 +02:00
2023-07-14 09:57:21 +02:00
2023-08-18 10:12:53 -07:00
2023-08-18 10:12:14 -07:00
2023-08-24 16:20:28 -07:00
2023-06-23 16:59:30 -07:00
2023-08-24 16:20:16 -07:00
2023-08-24 16:20:28 -07:00
2023-08-29 14:25:26 -07:00
2023-04-12 17:36:23 -07:00
2023-08-31 12:20:12 -07:00
2023-09-05 10:13:45 -07:00
2023-09-29 17:20:47 -07:00
2023-08-16 12:21:32 +01:00
2023-10-04 10:32:27 -07:00
2023-10-04 10:32:20 -07:00
2023-10-04 10:32:24 -07:00
2023-08-21 13:37:51 -07:00
2023-06-19 16:19:27 -07:00
2023-06-19 16:19:27 -07:00
2023-10-04 10:32:26 -07:00
2023-09-29 17:20:47 -07:00