mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 13:23:45 +00:00
In order to add mTHP support to khugepaged, we will often be checking if a given order is (or is not) a PMD order. Some places in the kernel already use this check, so lets create a simple helper function to keep the code clean and readable. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Nico Pache <[email protected]> Acked-by: David Hildenbrand (Arm) <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Reviewed-by: Dev Jain <[email protected]> Reviewed-by: Wei Yang <[email protected]> Reviewed-by: Lance Yang <[email protected]> Reviewed-by: Barry Song <[email protected]> Reviewed-by: Zi Yan <[email protected]> Reviewed-by: Pedro Falcato <[email protected]> Reviewed-by: Lorenzo Stoakes <[email protected]> Suggested-by: Lorenzo Stoakes <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: Brendan Jackman <[email protected]> Cc: Byungchul Park <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: David Rientjes <[email protected]> Cc: Gregory Price <[email protected]> Cc: "Huang, Ying" <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Jan Kara <[email protected]> Cc: Jann Horn <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Joshua Hahn <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Lorenzo Stoakes (Oracle) <[email protected]> Cc: "Masami Hiramatsu (Google)" <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Matthew Brost <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Nanyong Sun <[email protected]> Cc: Peter Xu <[email protected]> Cc: Rafael Aquini <[email protected]> Cc: Rakie Kim <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Ryan Roberts <[email protected]> Cc: Shivank Garg <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Takashi Iwai (SUSE) <[email protected]> Cc: Thomas Hellström <[email protected]> Cc: Usama Arif <[email protected]> Cc: Vishal Moola (Oracle) <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Will Deacon <[email protected]> Cc: Yang Shi <[email protected]> Cc: Zach O'Keefe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>