Page cache miss tracing using ftrace on mm/filemap
[firefly-linux-kernel-4.4.55.git] / include / linux / pagemap.h
index e3dea75a078ba67b12408abd743633e3ea0a3995..ee1390e2db8081c49adfbdcfce3e57652e38f4b1 100644 (file)
@@ -243,6 +243,9 @@ static inline struct page *page_cache_alloc_readahead(struct address_space *x)
 
 typedef int filler_t(void *, struct page *);
 
+pgoff_t page_cache_next_hole(struct address_space *mapping,
+                             pgoff_t index, unsigned long max_scan);
+
 extern struct page * find_get_page(struct address_space *mapping,
                                pgoff_t index);
 extern struct page * find_lock_page(struct address_space *mapping,
@@ -391,7 +394,7 @@ static inline int wait_on_page_locked_killable(struct page *page)
        return 0;
 }
 
-/* 
+/*
  * Wait for a page to be unlocked.
  *
  * This must be called with the caller "holding" the page,
@@ -404,7 +407,7 @@ static inline void wait_on_page_locked(struct page *page)
                wait_on_page_bit(page, PG_locked);
 }
 
-/* 
+/*
  * Wait for a page to complete writeback
  */
 static inline void wait_on_page_writeback(struct page *page)