|
@@ -605,26 +605,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
|