mm/migrate: remove the -EEXIST conversion for move_pages()
Subsystems (2)
PATCH 1/1 mm/migrate: remove the -EEXIST conversion for move_pages()
The -EEXIST conversion is introduced in commit 65462462ffb2 ("mm/gup:follow_pfn_pte(): -EEXIST cleanup"), since follow_page() may call follow_pfn_pte() which may return -EEXIST.
But after commit 7dff875c9436 ("mm/migrate: convert add_page_for_migration() from follow_page() to folio_walk"), it use folio_walk instead. This limit the error code and won't return -EEXIST.
Remove the error code conversion here.
--- mm/migrate.c | 7 ------- 1 file changed, 7 deletions(-)
mm/migrate.c +0 -7
@@ -2321,13 +2321,6 @@ static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes,continue ; } -/* -* The move_pages() man page does not have an -EEXIST choice, so -* use -EFAULT instead. -*/ -if (err == -EEXIST ) - err = -EFAULT ; -/* * If the page is already on the target node (!err), store the * node, otherwise, store the err.
Signature · 1 line
2.34.1
Quoted 21 lines · Wei Yang
The
-EEXISTconversion is introduced in commit65462462ffb2("mm/gup:follow_pfn_pte():-EEXISTcleanup"), sincefollow_page()may callfollow_pfn_pte()which may return-EEXIST.But after commit
7dff875c9436("mm/migrate: convertadd_page_for_migration()fromfollow_page()tofolio_walk"), it usefolio_walkinstead. This limit the error code and won't return-EEXIST.Remove the error code conversion here.
Signed-off-by Wei Yang <[email protected]>Cc John Hubbard <[email protected]>Cc David Hildenbrand <[email protected]>Cc Zi Yan <[email protected]>Cc Matthew Brost <[email protected]>Cc Joshua Hahn <[email protected]>Cc Rakie Kim <[email protected]>Cc Byungchul Park <[email protected]>Cc Gregory Price <[email protected]>Cc Ying Huang <[email protected]>Cc Alistair Popple <[email protected]>
Quoted 1 line
---
Signature · 3 lines
Cheers, David / dhildenb
Quoted 24 lines · David Hildenbrand
Quoted 21 lines · Wei Yang
The
-EEXISTconversion is introduced in commit65462462ffb2("mm/gup:follow_pfn_pte():-EEXISTcleanup"), sincefollow_page()may callfollow_pfn_pte()which may return-EEXIST.But after commit
7dff875c9436("mm/migrate: convertadd_page_for_migration()fromfollow_page()tofolio_walk"), it usefolio_walkinstead. This limit the error code and won't return-EEXIST.Remove the error code conversion here.
Signed-off-by Wei Yang <[email protected]>Cc John Hubbard <[email protected]>Cc David Hildenbrand <[email protected]>Cc Zi Yan <[email protected]>Cc Matthew Brost <[email protected]>Cc Joshua Hahn <[email protected]>Cc Rakie Kim <[email protected]>Cc Byungchul Park <[email protected]>Cc Gregory Price <[email protected]>Cc Ying Huang <[email protected]>Cc Alistair Popple <[email protected]>Quoted 1 line
---
Quoted 2 lines
Thanks
Quoted 4 lines
Signature · 3 lines
Cheers, David / dhildenb
Signature · 2 lines
Wei Yang Help you, Help me
Quoted 11 lines · Wei Yang
The
-EEXISTconversion is introduced in commit65462462ffb2("mm/gup:follow_pfn_pte():-EEXISTcleanup"), sincefollow_page()may callfollow_pfn_pte()which may return-EEXIST.But after commit
7dff875c9436("mm/migrate: convertadd_page_for_migration()fromfollow_page()tofolio_walk"), it usefolio_walkinstead. This limit the error code and won't return-EEXIST.Remove the error code conversion here.
Quoted 11 lines
Signed-off-by Wei Yang <[email protected]>Cc John Hubbard <[email protected]>Cc David Hildenbrand <[email protected]>Cc Zi Yan <[email protected]>Cc Matthew Brost <[email protected]>Cc Joshua Hahn <[email protected]>Cc Rakie Kim <[email protected]>Cc Byungchul Park <[email protected]>Cc Gregory Price <[email protected]>Cc Ying Huang <[email protected]>Cc Alistair Popple <[email protected]>
Hello,
This makes sense, thank you for spotting this!
Have a great day!
Joshua
Quoted 24 lines · Joshua Hahn
Quoted 11 lines · Wei Yang
The
-EEXISTconversion is introduced in commit65462462ffb2("mm/gup:follow_pfn_pte():-EEXISTcleanup"), sincefollow_page()may callfollow_pfn_pte()which may return-EEXIST.But after commit
7dff875c9436("mm/migrate: convertadd_page_for_migration()fromfollow_page()tofolio_walk"), it usefolio_walkinstead. This limit the error code and won't return-EEXIST.Remove the error code conversion here.
Quoted 11 lines
Signed-off-by Wei Yang <[email protected]>Cc John Hubbard <[email protected]>Cc David Hildenbrand <[email protected]>Cc Zi Yan <[email protected]>Cc Matthew Brost <[email protected]>Cc Joshua Hahn <[email protected]>Cc Rakie Kim <[email protected]>Cc Byungchul Park <[email protected]>Cc Gregory Price <[email protected]>Cc Ying Huang <[email protected]>Cc Alistair Popple <[email protected]>
Quoted 5 lines
Hello,
This makes sense, thank you for spotting this!
Reviewed-by Joshua Hahn <[email protected]>
Thanks :-)
Quoted 2 lines
Have a great day!
Joshua
Signature · 2 lines
Wei Yang Help you, Help me
Quoted 21 lines · Wei Yang
The
-EEXISTconversion is introduced in commit65462462ffb2("mm/gup:follow_pfn_pte():-EEXISTcleanup"), sincefollow_page()may callfollow_pfn_pte()which may return-EEXIST.But after commit
7dff875c9436("mm/migrate: convertadd_page_for_migration()fromfollow_page()tofolio_walk"), it usefolio_walkinstead. This limit the error code and won't return-EEXIST.Remove the error code conversion here.
Signed-off-by Wei Yang <[email protected]>Cc John Hubbard <[email protected]>Cc David Hildenbrand <[email protected]>Cc Zi Yan <[email protected]>Cc Matthew Brost <[email protected]>Cc Joshua Hahn <[email protected]>Cc Rakie Kim <[email protected]>Cc Byungchul Park <[email protected]>Cc Gregory Price <[email protected]>Cc Ying Huang <[email protected]>Cc Alistair Popple <[email protected]>
Quoted 4 lines
--- mm/migrate.c | 7 ------- 1 file changed, 7 deletions(-)
Best Regards,
Yan, Zi
Quoted 27 lines · Zi Yan
Quoted 21 lines · Wei Yang
The
-EEXISTconversion is introduced in commit65462462ffb2("mm/gup:follow_pfn_pte():-EEXISTcleanup"), sincefollow_page()may callfollow_pfn_pte()which may return-EEXIST.But after commit
7dff875c9436("mm/migrate: convertadd_page_for_migration()fromfollow_page()tofolio_walk"), it usefolio_walkinstead. This limit the error code and won't return-EEXIST.Remove the error code conversion here.
Signed-off-by Wei Yang <[email protected]>Cc John Hubbard <[email protected]>Cc David Hildenbrand <[email protected]>Cc Zi Yan <[email protected]>Cc Matthew Brost <[email protected]>Cc Joshua Hahn <[email protected]>Cc Rakie Kim <[email protected]>Cc Byungchul Park <[email protected]>Cc Gregory Price <[email protected]>Cc Ying Huang <[email protected]>Cc Alistair Popple <[email protected]>Quoted 4 lines
--- mm/migrate.c | 7 ------- 1 file changed, 7 deletions(-)
Quoted 2 lines
Reviewed-by Zi Yan <[email protected]>
Thanks
Quoted 2 lines
Best Regards,
Yan, Zi
Signature · 2 lines
Wei Yang Help you, Help me