Home
last modified time | relevance | path

Searched refs:ractl (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/mm/
H A Dreadahead.c205 void page_cache_ra_unbounded(struct readahead_control *ractl, in page_cache_ra_unbounded() argument
208 struct address_space *mapping = ractl->mapping; in page_cache_ra_unbounded()
209 unsigned long index = readahead_index(ractl); in page_cache_ra_unbounded()
241 read_pages(ractl); in page_cache_ra_unbounded()
242 ractl->_index++; in page_cache_ra_unbounded()
243 i = ractl->_index + ractl->_nr_pages - index - 1; in page_cache_ra_unbounded()
253 read_pages(ractl); in page_cache_ra_unbounded()
254 ractl->_index++; in page_cache_ra_unbounded()
255 i = ractl->_index + ractl->_nr_pages - index - 1; in page_cache_ra_unbounded()
260 ractl->_workingset |= folio_test_workingset(folio); in page_cache_ra_unbounded()
[all …]
H A Dfilemap.c2553 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, folio->index); in filemap_readahead()
2557 page_cache_async_ra(&ractl, folio, last_index - folio->index); in filemap_readahead()
3179 DEFINE_READAHEAD(ractl, file, ra, mapping, vmf->pgoff); in do_sync_mmap_readahead()
3188 ractl._index &= ~((unsigned long)HPAGE_PMD_NR - 1); in do_sync_mmap_readahead()
3197 page_cache_ra_order(&ractl, ra, HPAGE_PMD_ORDER); in do_sync_mmap_readahead()
3210 page_cache_sync_ra(&ractl, ra->ra_pages); in do_sync_mmap_readahead()
3233 ractl._index = ra->start; in do_sync_mmap_readahead()
3234 page_cache_ra_order(&ractl, ra, 0); in do_sync_mmap_readahead()
3248 DEFINE_READAHEAD(ractl, file, ra, file->f_mapping, vmf->pgoff); in do_async_mmap_readahead()
3262 page_cache_async_ra(&ractl, foli in do_async_mmap_readahead()
[all...]
H A Dinternal.h174 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, index); in force_page_cache_readahead()
175 force_page_cache_ra(&ractl, nr_to_read); in force_page_cache_readahead()
/openbmc/linux/fs/netfs/
H A Dbuffered_read.c117 struct readahead_control *ractl) in netfs_rreq_expand() argument
139 if (rreq->start != readahead_pos(ractl) || in netfs_rreq_expand()
140 rreq->len != readahead_length(ractl)) { in netfs_rreq_expand()
141 readahead_expand(ractl, rreq->start, rreq->len); in netfs_rreq_expand()
142 rreq->start = readahead_pos(ractl); in netfs_rreq_expand()
143 rreq->len = readahead_length(ractl); in netfs_rreq_expand()
145 trace_netfs_read(rreq, readahead_pos(ractl), readahead_length(ractl), in netfs_rreq_expand()
165 void netfs_readahead(struct readahead_control *ractl) in netfs_readahead() argument
168 struct netfs_inode *ctx = netfs_inode(ractl->mapping->host); in netfs_readahead()
171 _enter("%lx,%x", readahead_index(ractl), readahead_count(ractl)); in netfs_readahead()
[all …]
/openbmc/linux/include/linux/
H A Dpagemap.h1288 #define DEFINE_READAHEAD(ractl, f, r, m, i) \ argument
1289 struct readahead_control ractl = { \
1303 void readahead_expand(struct readahead_control *ractl,
1324 DEFINE_READAHEAD(ractl, file, ra, mapping, index); in page_cache_sync_readahead()
1325 page_cache_sync_ra(&ractl, req_count); in page_cache_sync_readahead()
1347 DEFINE_READAHEAD(ractl, file, ra, mapping, index); in page_cache_async_readahead()
1348 page_cache_async_ra(&ractl, folio, req_count); in page_cache_async_readahead()
1351 static inline struct folio *__readahead_folio(struct readahead_control *ractl) in __readahead_folio() argument
1355 BUG_ON(ractl->_batch_count > ractl->_nr_pages); in __readahead_folio()
1356 ractl->_nr_pages -= ractl->_batch_count; in __readahead_folio()
[all …]
/openbmc/linux/fs/nfs/
H A Dread.c391 void nfs_readahead(struct readahead_control *ractl) in nfs_readahead() argument
395 unsigned int nr_pages = readahead_count(ractl); in nfs_readahead()
396 struct file *file = ractl->file; in nfs_readahead()
397 struct inode *inode = ractl->mapping->host; in nfs_readahead()
401 trace_nfs_aop_readahead(inode, readahead_pos(ractl), nr_pages); in nfs_readahead()
403 task_io_account_read(readahead_length(ractl)); in nfs_readahead()
409 ret = nfs_netfs_readahead(ractl); in nfs_readahead()
424 while ((folio = readahead_folio(ractl)) != NULL) { in nfs_readahead()
H A Dfscache.h99 extern int nfs_netfs_readahead(struct readahead_control *ractl);
177 static inline int nfs_netfs_readahead(struct readahead_control *ractl) in nfs_netfs_readahead() argument
H A Dfscache.c252 int nfs_netfs_readahead(struct readahead_control *ractl) in nfs_netfs_readahead() argument
254 struct inode *inode = ractl->mapping->host; in nfs_netfs_readahead()
259 netfs_readahead(ractl); in nfs_netfs_readahead()
/openbmc/linux/fs/squashfs/
H A Dfile.c536 static void squashfs_readahead(struct readahead_control *ractl) in squashfs_readahead() argument
538 struct inode *inode = ractl->mapping->host; in squashfs_readahead()
542 loff_t start = readahead_pos(ractl) & ~mask; in squashfs_readahead()
543 size_t len = readahead_length(ractl) + readahead_pos(ractl) - start; in squashfs_readahead()
551 readahead_expand(ractl, start, (len | mask) + 1); in squashfs_readahead()
570 nr_pages = __readahead_batch(ractl, pages, max_pages); in squashfs_readahead()
574 if (readahead_pos(ractl) >= i_size_read(inode)) in squashfs_readahead()
/openbmc/linux/fs/f2fs/
H A Dverity.c267 DEFINE_READAHEAD(ractl, NULL, NULL, inode->i_mapping, index); in f2fs_read_merkle_tree_page()
272 page_cache_ra_unbounded(&ractl, num_ra_pages, 0); in f2fs_read_merkle_tree_page()
H A Dfile.c4186 DEFINE_READAHEAD(ractl, NULL, NULL, inode->i_mapping, page_idx); in redirty_blocks()
4192 page_cache_ra_unbounded(&ractl, len, 0); in redirty_blocks()
/openbmc/linux/fs/ext4/
H A Dverity.c370 DEFINE_READAHEAD(ractl, NULL, NULL, inode->i_mapping, index); in ext4_read_merkle_tree_page()
375 page_cache_ra_unbounded(&ractl, num_ra_pages, 0); in ext4_read_merkle_tree_page()
/openbmc/linux/fs/smb/client/
H A Dfile.c4611 static void cifs_readahead(struct readahead_control *ractl) in cifs_readahead() argument
4613 struct cifsFileInfo *open_file = ractl->file->private_data; in cifs_readahead()
4614 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(ractl->file); in cifs_readahead()
4619 bool caching = fscache_cookie_enabled(cifs_inode_cookie(ractl->mapping->host)) && in cifs_readahead()
4620 cifs_inode_cookie(ractl->mapping->host)->cache_priv; in cifs_readahead()
4628 ra_pages = readahead_count(ractl); in cifs_readahead()
4629 ra_index = readahead_index(ractl); in cifs_readahead()
4641 __func__, ractl->file, ractl->mapping, ra_pages); in cifs_readahead()
4661 ractl->mapping->host, ra_index, nr_pages, in cifs_readahead()
4673 folio = readahead_folio(ractl); in cifs_readahead()
[all …]
/openbmc/linux/Documentation/filesystems/
H A Dnetfs_library.rst137 void netfs_readahead(struct readahead_control *ractl);