diff options
Diffstat (limited to 'include/linux/pagemap.h')
| -rw-r--r-- | include/linux/pagemap.h | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index d5570deff400..20225b067583 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -315,6 +315,7 @@ pgoff_t page_cache_prev_miss(struct address_space *mapping,  #define FGP_NOWAIT		0x00000020  #define FGP_FOR_MMAP		0x00000040  #define FGP_HEAD		0x00000080 +#define FGP_ENTRY		0x00000100  struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset,  		int fgp_flags, gfp_t cache_gfp_mask); @@ -450,8 +451,7 @@ static inline struct page *find_subpage(struct page *head, pgoff_t index)  }  unsigned find_get_entries(struct address_space *mapping, pgoff_t start, -			  unsigned int nr_entries, struct page **entries, -			  pgoff_t *indices); +		pgoff_t end, struct pagevec *pvec, pgoff_t *indices);  unsigned find_get_pages_range(struct address_space *mapping, pgoff_t *start,  			pgoff_t end, unsigned int nr_pages,  			struct page **pages); @@ -681,8 +681,7 @@ static inline int wait_on_page_locked_killable(struct page *page)  	return wait_on_page_bit_killable(compound_head(page), PG_locked);  } -extern void put_and_wait_on_page_locked(struct page *page); - +int put_and_wait_on_page_locked(struct page *page, int state);  void wait_on_page_writeback(struct page *page);  extern void end_page_writeback(struct page *page);  void wait_for_stable_page(struct page *page); @@ -757,9 +756,11 @@ 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);  extern void __delete_from_page_cache(struct page *page, void *shadow); -int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask); +void replace_page_cache_page(struct page *old, struct page *new);  void delete_from_page_cache_batch(struct address_space *mapping,  				  struct pagevec *pvec); +loff_t mapping_seek_hole_data(struct address_space *, loff_t start, loff_t end, +		int whence);  /*   * Like add_to_page_cache_locked, but used to add newly allocated pages:  | 
