mm: RIP put_page_unless_one() as it has no callers
Subsystems (2)
PATCH 1/1 mm: RIP put_page_unless_one() as it has no callers
Cc Andrew Morton <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc Cyrill Gorcunov <[email protected]>
Signed-off-by Vineet Gupta <[email protected]>
--- include/linux/mm.h | 12 ------------ 1 file changed, 12 deletions(-)
include/linux/mm.h +0 -12
@@ -358,18 +358,6 @@ static inline int get_page_unless_zero(struct page *page)return atomic_inc_not_zero (&page->_count); } -/* -* Try to drop a ref unless the page has a refcount of one, return false if -* that is the case. -* This is to make sure that the refcount won't become zero after this drop. -* This can be called when MMU is off so it must not access -* any of the virtual mappings. -*/ -static inline int put_page_unless_one (struct page *page) -{ -return atomic_add_unless (&page->_count,-1 ,1 ); -} -extern int page_is_ram (unsigned long pfn);extern int region_is_ram (resource_size_t phys_addr,unsigned long size);
Signature · 7 lines
1.9.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>