diff options
author | Will Deacon <will@kernel.org> | 2022-07-25 10:57:02 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-07-25 10:57:02 +0100 |
commit | 03939cf0d5d5eaf4141c594e427eb5ba14fbcd91 (patch) | |
tree | 7fd2bee2dcd0cd2879490564fb26dd78db35aaca /include | |
parent | 02eab44c71df05882be9352ca12d8a60f7a10649 (diff) | |
parent | d0637c505f8a1d8c4088642f1f3e9e3b22da14f6 (diff) |
Merge branch 'for-next/mm' into for-next/core
* for-next/mm:
arm64: enable THP_SWAP for arm64
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/huge_mm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index de29821231c9..4ddaf6ad73ef 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h @@ -461,4 +461,16 @@ static inline int split_folio_to_list(struct folio *folio, return split_huge_page_to_list(&folio->page, list); } +/* + * archs that select ARCH_WANTS_THP_SWAP but don't support THP_SWP due to + * limitations in the implementation like arm64 MTE can override this to + * false + */ +#ifndef arch_thp_swp_supported +static inline bool arch_thp_swp_supported(void) +{ + return true; +} +#endif + #endif /* _LINUX_HUGE_MM_H */ |