From: Mike Rapoport <rppt@linux.vnet.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>,
linux-mm <linux-mm@kvack.org>,
lkml <linux-kernel@vger.kernel.org>,
Mike Rapoport <rppt@linux.vnet.ibm.com>
Subject: [PATCH 1/2] mm/ksm: remove unused page_referenced_ksm declaration
Date: Tue, 24 Apr 2018 09:41:45 +0300 [thread overview]
Message-ID: <1524552106-7356-2-git-send-email-rppt@linux.vnet.ibm.com> (raw)
In-Reply-To: <1524552106-7356-1-git-send-email-rppt@linux.vnet.ibm.com>
The commit 9f32624be943538983e ("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.
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
---
include/linux/ksm.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/include/linux/ksm.h b/include/linux/ksm.h
index 44368b1..bbdfca3 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,
return page;
}
-static inline int page_referenced_ksm(struct page *page,
- struct mem_cgroup *memcg, unsigned long *vm_flags)
-{
- return 0;
-}
-
static inline void rmap_walk_ksm(struct page *page,
struct rmap_walk_control *rwc)
{
--
2.7.4
next prev parent reply other threads:[~2018-04-24 6:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-24 6:41 [PATCH 0/2] mm/ksm: minor cleanups Mike Rapoport
2018-04-24 6:41 ` Mike Rapoport [this message]
2018-04-24 6:41 ` [PATCH 2/2] mm/ksm: move [set_]page_stable_node from ksm.h to ksm.c Mike Rapoport
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1524552106-7356-2-git-send-email-rppt@linux.vnet.ibm.com \
--to=rppt@linux.vnet.ibm.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).