Commit 19deb769 authored by Committed by Linus TorvaldsBrowse files
Revert "Revert "Revert "mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpmask""
This reverts commit 92717d42. Since commit a8282608 ("Revert "mm, thp: restore node-local hugepage allocations"") is reverted in this series, it is better to restore the previous 5.2 behavior between the thp allocation and the page allocator rather than to attempt any consolidation or cleanup for a policy that is now reverted. It's less risky during an rc cycle and subsequent patches in this series further modify the same policy that the pre-5.3 behavior implements. Consolidation and cleanup can be done subsequent to a sane default page allocation strategy, so this patch reverts a cleanup done on a strategy that is now reverted and thus is the least risky option. Signed-off-by: David Rientjes <firstname.lastname@example.org> Cc: Andrea Arcangeli <email@example.com> Cc: Michal Hocko <firstname.lastname@example.org> Cc: Mel Gorman <email@example.com> Cc: Vlastimil Babka <firstname.lastname@example.org> Cc: Stefan Priebe - Profihost AG <email@example.com> Cc: "Kirill A. Shutemov" <firstname.lastname@example.org> Cc: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>