summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2020-08-21 19:49:56 -0400
committerGeorg Veichtlbauer <georg@vware.at>2023-07-16 12:47:43 +0200
commit899def5edcd48ff16c0f41624ecf8be77c81a18d (patch)
tree214ca98cd6f63a0b246d9fc9755d9d058b175381 /include/linux
parent46c6fbdd185a7005fac895c5cfa7896b9329324f (diff)
UPSTREAM: mm/ksm: Remove reuse_ksm_page()
Remove the function as the last reference has gone away with the do_wp_page() changes. Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Change-Id: Ie4da88791abe9407157566854b2db9b94c0c962f
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ksm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/ksm.h b/include/linux/ksm.h
index febba394f93c..481c8c4627ca 100644
--- a/include/linux/ksm.h
+++ b/include/linux/ksm.h
@@ -62,8 +62,6 @@ struct page *ksm_might_need_to_copy(struct page *page,
int rmap_walk_ksm(struct page *page, struct rmap_walk_control *rwc);
void ksm_migrate_page(struct page *newpage, struct page *oldpage);
-bool reuse_ksm_page(struct page *page,
- struct vm_area_struct *vma, unsigned long address);
#else /* !CONFIG_KSM */
@@ -104,11 +102,6 @@ static inline int rmap_walk_ksm(struct page *page,
static inline void ksm_migrate_page(struct page *newpage, struct page *oldpage)
{
}
-static inline bool reuse_ksm_page(struct page *page,
- struct vm_area_struct *vma, unsigned long address)
-{
- return false;
-}
#endif /* CONFIG_MMU */
#endif /* !CONFIG_KSM */