diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2021-04-27 23:10:58 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-04-27 23:10:58 +0200 |
commit | 8b018889922581c247373fc1bd28e11a472d3d0f (patch) | |
tree | 62124f24a00a33251b1fa592ab1c9ff7b8618e9f /mm/internal.h | |
parent | 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 (diff) | |
parent | 53b776c77aca99b663a5512a04abc27670d61058 (diff) |
Merge remote-tracking branch 'dhowells/netfs-lib'
Pick up David Howells' netfs helper library and the new fscache API.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'mm/internal.h')
-rw-r--r-- | mm/internal.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/internal.h b/mm/internal.h index cb3c5e0a7799..bbe900f9f095 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -51,13 +51,12 @@ void unmap_page_range(struct mmu_gather *tlb, void do_page_cache_ra(struct readahead_control *, unsigned long nr_to_read, unsigned long lookahead_size); -void force_page_cache_ra(struct readahead_control *, struct file_ra_state *, - unsigned long nr); +void force_page_cache_ra(struct readahead_control *, unsigned long nr); static inline void force_page_cache_readahead(struct address_space *mapping, struct file *file, pgoff_t index, unsigned long nr_to_read) { - DEFINE_READAHEAD(ractl, file, mapping, index); - force_page_cache_ra(&ractl, &file->f_ra, nr_to_read); + DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, index); + force_page_cache_ra(&ractl, nr_to_read); } unsigned find_lock_entries(struct address_space *mapping, pgoff_t start, |