diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-08-27 14:43:10 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-08-27 14:43:10 -0400 |
commit | ecbb3b45caa149a801c741e601f9dec146e33568 (patch) | |
tree | 2261d54857c812728f7986e5f6752f26d953b2d9 /include/linux/pagemap.h | |
parent | 0bd0432c8fd6bd3aef1e185f7fdd575f941d9f24 (diff) |
wipreadahead
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r-- | include/linux/pagemap.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 25cadac5e90d..4679ef2b4584 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -689,10 +689,12 @@ void page_cache_readahead_unbounded(struct address_space *, struct file *, struct readahead_control { struct file *file; struct address_space *mapping; -/* private: use the readahead_* accessors instead */ - pgoff_t _index; - unsigned int _nr_pages; - unsigned int _batch_count; + + pgoff_t index; + unsigned int nr; + unsigned int size; + struct page **pagevec; + struct page *pagevec_onstack[8]; }; /** @@ -762,20 +764,6 @@ static inline unsigned int __readahead_batch(struct readahead_control *rac, } /** - * readahead_page_batch - Get a batch of pages to read. - * @rac: The current readahead request. - * @array: An array of pointers to struct page. - * - * Context: The pages are locked and have an elevated refcount. The caller - * should decreases the refcount once the page has been submitted for I/O - * and unlock the page once all I/O to that page has completed. - * Return: The number of pages placed in the array. 0 indicates the request - * is complete. - */ -#define readahead_page_batch(rac, array) \ - __readahead_batch(rac, array, ARRAY_SIZE(array)) - -/** * readahead_pos - The byte offset into the file of this readahead request. * @rac: The readahead request. */ |