Skip to content

Commit

Permalink
mm: remove put_page_unless_one()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vineet Gupta authored and Linus Torvalds committed Sep 8, 2015
1 parent 4fcab5f commit b5e3aa0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b5e3aa0

Please sign in to comment.