summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-07-18 21:10:43 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-18 21:10:43 -0700
commitcad46d66a5c4b715ec57ced160b4700d080330e5 (patch)
tree4c1a3b297c3aaa7636738fe298c7e3adf8a73de8 /include
parente3339bee8dcfe3fe6a521b9700d78bbe79c3c6d2 (diff)
[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.
Diffstat (limited to 'include')
-rw-r--r--include/linux/pagemap.h2
1 files changed, 0 insertions, 2 deletions
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)