summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2018-05-26 14:15:21 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2018-05-26 14:29:06 +1000
commit71bdf6acf773046ca8f7165000dd052ee45635e0 (patch)
tree9fa32eb8318b76d0da23a6d8c46fd3f80e45d7fd /mm
parente7f26174bfb6288a0786fd33878c408d4505efe8 (diff)
downloadlinux-next-71bdf6acf773046ca8f7165000dd052ee45635e0.tar.gz
mm-ksm-move-page_stable_node-from-ksmh-to-ksmc-fix
fix SYSFS=n build Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'mm')
-rw-r--r--mm/ksm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mm/ksm.c b/mm/ksm.c
index 51791affac13..f24b4e908eea 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -823,11 +823,6 @@ static int unmerge_ksm_pages(struct vm_area_struct *vma,
return err;
}
-#ifdef CONFIG_SYSFS
-/*
- * Only called through the sysfs control interface:
- */
-
static inline struct stable_node *page_stable_node(struct page *page)
{
return PageKsm(page) ? page_rmapping(page) : NULL;
@@ -839,6 +834,10 @@ static inline void set_page_stable_node(struct page *page,
page->mapping = (void *)((unsigned long)stable_node | PAGE_MAPPING_KSM);
}
+#ifdef CONFIG_SYSFS
+/*
+ * Only called through the sysfs control interface:
+ */
static int remove_stable_node(struct stable_node *stable_node)
{
struct page *page;