Commit 929aaf56958ab2300919653b923413af695470a5

Authored by Zhang Yanfei
Committed by Linus Torvalds
1 parent 59d3132f8a

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>

Showing 1 changed file with 0 additions and 5 deletions Side-by-side Diff

... ... @@ -32,11 +32,6 @@
32 32 set_page_count(page, 1);
33 33 }
34 34  
35   -static inline void __put_page(struct page *page)
36   -{
37   - atomic_dec(&page->_count);
38   -}
39   -
40 35 static inline void __get_page_tail_foll(struct page *page,
41 36 bool get_page_head)
42 37 {