[PATCH] mm: schedule find_trylock_page() removal
find_trylock_page() is an odd interface in that it doesn't take a reference like the others. Now that XFS no longer uses it, and its last remaining caller actually wants an elevated refcount, opencode that callsite and schedule find_trylock_page() for removal. Signed-off-by: Nick Piggin <npiggin@suse.de> Acked-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
9bf9e89c3d
commit
93fac7041f
@@ -72,8 +72,8 @@ extern struct page * find_get_page(struct address_space *mapping,
|
||||
unsigned long index);
|
||||
extern struct page * find_lock_page(struct address_space *mapping,
|
||||
unsigned long index);
|
||||
extern struct page * find_trylock_page(struct address_space *mapping,
|
||||
unsigned long index);
|
||||
extern __deprecated_for_modules struct page * find_trylock_page(
|
||||
struct address_space *mapping, unsigned long index);
|
||||
extern struct page * find_or_create_page(struct address_space *mapping,
|
||||
unsigned long index, gfp_t gfp_mask);
|
||||
unsigned find_get_pages(struct address_space *mapping, pgoff_t start,
|
||||
|
Reference in New Issue
Block a user