diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-06-07 20:07:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-07 20:34:36 -0400 |
commit | 48f49e1f66854ef44439b84a5cf47179539f3804 (patch) | |
tree | 871cd244cc900921c81d7f31644cabb4a784a17f | |
parent | 93781325da6e07af57a21f111d1f2b9f128fa397 (diff) |
mm/ksm: remove unused page_referenced_ksm declaration
Commit 9f32624be943 ("mm/rmap: use rmap_walk() in page_referenced()")
removed the declaration of page_referenced_ksm for the case
CONFIG_KSM=y, but left one for CONFIG_KSM=n.
Remove the unused leftover.
Link: http://lkml.kernel.org/r/1524552106-7356-2-git-send-email-rppt@linux.vnet.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/ksm.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/ksm.h b/include/linux/ksm.h index 44368b19b27e..bbdfca3db6e1 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h | |||
@@ -89,12 +89,6 @@ static inline struct page *ksm_might_need_to_copy(struct page *page, | |||
89 | return page; | 89 | return page; |
90 | } | 90 | } |
91 | 91 | ||
92 | static inline int page_referenced_ksm(struct page *page, | ||
93 | struct mem_cgroup *memcg, unsigned long *vm_flags) | ||
94 | { | ||
95 | return 0; | ||
96 | } | ||
97 | |||
98 | static inline void rmap_walk_ksm(struct page *page, | 92 | static inline void rmap_walk_ksm(struct page *page, |
99 | struct rmap_walk_control *rwc) | 93 | struct rmap_walk_control *rwc) |
100 | { | 94 | { |