[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1337949430-24626-1-git-send-email-liwp.linux@gmail.com>
Date:	Fri, 25 May 2012 20:37:10 +0800
From:	Wanpeng Li <liwp.linux@...il.com>
To:	Andrew Morton <akpm@...ux-foundation.org>,
	Hugh Dickins <hughd@...gle.com>,
	David Rientjes <rientjes@...gle.com>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc:	linux-kernel@...r.kernel.org, Wanpeng Li <liwp.linux@...il.com>,
	Wanpeng Li <liwp@...ux.vnet.ibm.com>
Subject: remove repeat implementation of page_referenced
From: Wanpeng Li <liwp@...ux.vnet.ibm.com>
page_referenced function just called from mm/vmscan.c to handle paging
out.It is realized in mm/rmap.c and has an interface exported in rmap.h.
Signed-off-by: Wanpeng Li <liwp@...ux.vnet.ibm.com>
---
 include/linux/rmap.h |    8 --------
 1 file changed, 8 deletions(-)
diff --git a/include/linux/rmap.h b/include/linux/rmap.h
index fd07c45..ee0c005 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -234,14 +234,6 @@ int rmap_walk(struct page *page, int (*rmap_one)(struct page *,
 #define anon_vma_prepare(vma)	(0)
 #define anon_vma_link(vma)	do {} while (0)
 
-static inline int page_referenced(struct page *page, int is_locked,
-				  struct mem_cgroup *memcg,
-				  unsigned long *vm_flags)
-{
-	*vm_flags = 0;
-	return 0;
-}
-
 #define try_to_unmap(page, refs) SWAP_FAIL
 
 static inline int page_mkclean(struct page *page)
-- 
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
