From: Zhang Yanfei Date: Wed, 19 Jun 2013 00:07:02 +0000 (+1000) Subject: mm: remove unused __put_page() X-Git-Tag: next-20130619~2^2~333 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3bee08b29bc760726764b4b2619e2adeef4885be;p=karo-tx-linux.git 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 Signed-off-by: Andrew Morton --- 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) {