summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVineet Gupta <Vineet.Gupta1@synopsys.com>2015-09-09 00:59:56 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-09 01:35:28 +0300
commitb5e3aa0a4d5e35329203fd09acb0dbc7f7fd64de (patch)
tree52dca1e15ff3ff0db5ab1d909943169425f114d6 /include
parent4fcab5f437c481e51c270a2d12ef56a3f2367371 (diff)
downloadlinux-b5e3aa0a4d5e35329203fd09acb0dbc7f7fd64de.tar.xz
mm: remove put_page_unless_one()
It has no callers. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index e1fbd18b8c4b..4ec72ef1f04a 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -361,18 +361,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);