From cad46d66a5c4b715ec57ced160b4700d080330e5 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 18 Jul 2002 21:10:43 -0700 Subject: [PATCH] remove add_to_page_cache_unique() A tasty patch from Hugh Dickens. radix_tree_insert() fails if something was already present at the target index, so that error can be propagated back through add_to_page_cache(). Hence add_to_page_cache_unique() is obsolete. Hugh's patch removes add_to_page_cache_unique() and cleans up a bunch of stuff. --- include/linux/pagemap.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index a3d37ab267ae..6c4ee12fb7ec 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -52,8 +52,6 @@ extern struct page * read_cache_page(struct address_space *mapping, extern int add_to_page_cache(struct page *page, struct address_space *mapping, unsigned long index); -extern int add_to_page_cache_unique(struct page *page, - struct address_space *mapping, unsigned long index); static inline void ___add_to_page_cache(struct page *page, struct address_space *mapping, unsigned long index) -- cgit v1.2.3