Skip to contentSkip to conversation

doc: mm: migration doesn't use FOLL_SPLIT anymore

PATCH Applied Yang Shi 3 participants 3 messages Apr 18, 2019 – Apr 19, 2019

Subsystems (2)
lore
Share & tools
lore

Yang Shi

author
#0 lore raw

PATCH 1/1 doc: mm: migration doesn't use FOLL_SPLIT anymore

When demonstrating FOLL_SPLIT in transhuge document, migration is used as an example. But, since commit 94723aafb9e7 ("mm: unclutter THP migration"), the way of THP migration is totally changed. FOLL_SPLIT is not used by migration anymore due to the change.

Remove the obsolete example to avoid confusion.

Cc Michal Hocko <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Zi Yan <[email protected]>
Cc Mike Rapoport <[email protected]>
---
 Documentation/vm/transhuge.rst | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
Documentation/vm/transhuge.rst +1 -7
index a8cf680..8df3806 100644
@@ -55,13 +55,7 @@ prevent page from being split by anyone.
 In case you can't handle compound pages if they're returned by
 follow_page, the FOLL_SPLIT bit can be specified as parameter to
 follow_page, so that it will split the hugepages before returning
-them. Migration for example passes FOLL_SPLIT as parameter to
-follow_page because it's not hugepage aware and in fact it can't work
-at all on hugetlbfs (but it instead works fine on transparent
-hugepages thanks to FOLL_SPLIT). migration simply can't deal with
-hugepages being returned (as it's not only checking the pfn of the
-page and pinning it during the copy but it pretends to migrate the
-memory in regular page sizes and with regular pte/pmd mappings).
+them.
 
 Graceful fallback
 =================
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 37 lines · Yang Shi

When demonstrating FOLL_SPLIT in transhuge document, migration is used as an example. But, since commit 94723aafb9e7 ("mm: unclutter THP migration"), the way of THP migration is totally changed. FOLL_SPLIT is not used by migration anymore due to the change.

Remove the obsolete example to avoid confusion.

Cc Michal Hocko <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Zi Yan <[email protected]>
Cc Mike Rapoport <[email protected]>
---
 Documentation/vm/transhuge.rst | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
Documentation/vm/transhuge.rst +1 -7
index a8cf680..8df3806 100644
@@ -55,13 +55,7 @@ prevent page from being split by anyone.
 In case you can't handle compound pages if they're returned by
 follow_page, the FOLL_SPLIT bit can be specified as parameter to
 follow_page, so that it will split the hugepages before returning
-them. Migration for example passes FOLL_SPLIT as parameter to
-follow_page because it's not hugepage aware and in fact it can't work
-at all on hugetlbfs (but it instead works fine on transparent
-hugepages thanks to FOLL_SPLIT). migration simply can't deal with
-hugepages being returned (as it's not only checking the pfn of the
-page and pinning it during the copy but it pretends to migrate the
-memory in regular page sizes and with regular pte/pmd mappings).
+them.
 
 Graceful fallback
 =================
Signature · 1 line
1.8.3.1

Thanks for updating the document.

--
Best Regards,
Yan Zi

maintainer Applied
#2 lore raw
In reply to Yang Shi
Quoted 5 lines · On Fri, 19 Apr 2019 04:17:04 +0800 Yang Shi <[email protected]> wrote:

When demonstrating FOLL_SPLIT in transhuge document, migration is used as an example. But, since commit 94723aafb9e7 ("mm: unclutter THP migration"), the way of THP migration is totally changed. FOLL_SPLIT is not used by migration anymore due to the change.

Quoted 7 lines

Remove the obsolete example to avoid confusion.

Cc Michal Hocko <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Zi Yan <[email protected]>
Cc Mike Rapoport <[email protected]>

Applied, thanks.

jon