diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-08-28 18:36:42 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-27 11:15:26 -0500 |
commit | 797c464cbe4311103d832a94d0efc2808c261079 (patch) | |
tree | 6c22b1ffd229c44b6b17d204a2b80e54918406dc /include | |
parent | 5ef6faf61b098e2ba668dea73be2419a22628751 (diff) |
fs: kill add_to_page_cache_locked()
No longer has any users, so remove it
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pagemap.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index b1bd2186e6d2..b61fab5a1317 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -613,8 +613,8 @@ static inline int fault_in_pages_readable(const char __user *uaddr, int size) return 0; } -int add_to_page_cache_locked(struct page *page, struct address_space *mapping, - pgoff_t index, gfp_t gfp_mask); +int add_to_page_cache(struct page *page, struct address_space *mapping, + pgoff_t index, gfp_t gfp_mask); int add_to_page_cache_lru(struct page *page, struct address_space *mapping, pgoff_t index, gfp_t gfp_mask); extern void delete_from_page_cache(struct page *page); @@ -623,22 +623,6 @@ int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask); void delete_from_page_cache_batch(struct address_space *mapping, struct pagevec *pvec); -/* - * Like add_to_page_cache_locked, but used to add newly allocated pages: - * the page is new, so we can just run __SetPageLocked() against it. - */ -static inline int add_to_page_cache(struct page *page, - struct address_space *mapping, pgoff_t offset, gfp_t gfp_mask) -{ - int error; - - __SetPageLocked(page); - error = add_to_page_cache_locked(page, mapping, offset, gfp_mask); - if (unlikely(error)) - __ClearPageLocked(page); - return error; -} - static inline unsigned long dir_pages(struct inode *inode) { return (unsigned long)(inode->i_size + PAGE_SIZE - 1) >> |