Skip to contentSkip to conversation

mm: Remove unused function __put_page

PATCH New Zhang Yanfei 1 participant 1 message Jun 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: Remove unused function __put_page

From: Zhang Yanfei <[email protected]>

This function is nowhere used, and it has a confusing name with put_page in mm/swap.c. So better to remove it.

---
 mm/internal.h |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
mm/internal.h +0 -5
index 8562de0..4390ac6 100644
@@ -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)
 {
Signature · 7 lines
1.7.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>