summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2007-02-09 05:28:19 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-09 08:06:14 -0800
commit62045305c20a194127ae87ccf963cfe6ffde7c4e (patch)
treee672f27c6fd422aa9c2a7ec1ed30fb479510ed15 /mm
parentf049274b012fd3b50113f194bfbbcbc3143d0da3 (diff)
downloadop-kernel-dev-62045305c20a194127ae87ccf963cfe6ffde7c4e.zip
op-kernel-dev-62045305c20a194127ae87ccf963cfe6ffde7c4e.tar.gz
[PATCH] mm: remove find_trylock_page
Remove find_trylock_page as per the removal schedule. Signed-off-by: Nick Piggin <npiggin@suse.de> [ Let's see if anybody screams ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/filemap.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 8332c77..f30ef28 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -606,26 +606,6 @@ struct page * find_get_page(struct address_space *mapping, unsigned long offset)
EXPORT_SYMBOL(find_get_page);
/**
- * find_trylock_page - find and lock a page
- * @mapping: the address_space to search
- * @offset: the page index
- *
- * Same as find_get_page(), but trylock it instead of incrementing the count.
- */
-struct page *find_trylock_page(struct address_space *mapping, unsigned long offset)
-{
- struct page *page;
-
- read_lock_irq(&mapping->tree_lock);
- page = radix_tree_lookup(&mapping->page_tree, offset);
- if (page && TestSetPageLocked(page))
- page = NULL;
- read_unlock_irq(&mapping->tree_lock);
- return page;
-}
-EXPORT_SYMBOL(find_trylock_page);
-
-/**
* find_lock_page - locate, pin and lock a pagecache page
* @mapping: the address_space to search
* @offset: the page index
OpenPOWER on IntegriCloud