summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-07-09 01:00:09 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 19:33:22 +0200
commit929aaf56958ab2300919653b923413af695470a5 (patch)
tree322b81aa2fd6b46462669af8a2b5b23b9b798788
parentvfree: don't schedule free_work() if llist_add() returns false (diff)
downloadlinux-929aaf56958ab2300919653b923413af695470a5.tar.xz
linux-929aaf56958ab2300919653b923413af695470a5.zip
mm: remove unused __put_page()
This function is nowhere used, and it has a confusing name with put_page in mm/swap.c. So better to remove it. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/internal.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/internal.h b/mm/internal.h
index 8562de0a5197..4390ac6c106e 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -32,11 +32,6 @@ static inline void set_page_refcounted(struct page *page)
set_page_count(page, 1);
}
-static inline void __put_page(struct page *page)
-{
- atomic_dec(&page->_count);
-}
-
static inline void __get_page_tail_foll(struct page *page,
bool get_page_head)
{