LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: RIP put_page_unless_one() as it has no callers
@ 2015-07-09  8:53 Vineet Gupta
  0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2015-07-09  8:53 UTC (permalink / raw
  To: Andrew Morton
  Cc: Vineet Gupta, Kirill A. Shutemov, Andrea Arcangeli, Joonsoo Kim,
	Cyrill Gorcunov, linux-mm, linux-kernel

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 include/linux/mm.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 7f471789781a..8d835cbe48fc 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -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);
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-09  8:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09  8:53 [PATCH] mm: RIP put_page_unless_one() as it has no callers Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).