mm: remove unused __put_page()
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Mon, 8 Jul 2013 23:00:09 +0000 (16:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:22 +0000 (10:33 -0700)
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>
mm/internal.h

index 8562de0a5197d31e3621d10db8b0c01d23f44f83..4390ac6c106e6124d653f18948ec296173527521 100644 (file)
@@ -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)
 {