Home
last modified time | relevance | path

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

/openbmc/linux/mm/
H A Dreadahead.c241 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()
261 ractl->_nr_pages++; in page_cache_ra_unbounded()
269 read_pages(ractl); in page_cache_ra_unbounded()
538 read_pages(ractl); in page_cache_ra_order()
687 if (!ractl->file) in page_cache_sync_ra()
[all …]
H A Dfilemap.c2555 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, folio->index); in filemap_readahead()
2559 page_cache_async_ra(&ractl, folio, last_index - folio->index); in filemap_readahead()
3181 DEFINE_READAHEAD(ractl, file, ra, mapping, vmf->pgoff); in do_sync_mmap_readahead()
3190 ractl._index &= ~((unsigned long)HPAGE_PMD_NR - 1); in do_sync_mmap_readahead()
3199 page_cache_ra_order(&ractl, ra, HPAGE_PMD_ORDER); in do_sync_mmap_readahead()
3212 page_cache_sync_ra(&ractl, ra->ra_pages); in do_sync_mmap_readahead()
3235 ractl._index = ra->start; in do_sync_mmap_readahead()
3236 page_cache_ra_order(&ractl, ra, 0); in do_sync_mmap_readahead()
3250 DEFINE_READAHEAD(ractl, file, ra, file->f_mapping, vmf->pgoff); in do_async_mmap_readahead()
3264 page_cache_async_ra(&ractl, folio, ra->ra_pages); in do_async_mmap_readahead()
H A Dinternal.h129 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, index); in force_page_cache_readahead()
130 force_page_cache_ra(&ractl, nr_to_read); in force_page_cache_readahead()
/openbmc/linux/fs/netfs/
H A Dbuffered_read.c145 trace_netfs_read(rreq, readahead_pos(ractl), readahead_length(ractl), in netfs_rreq_expand()
171 _enter("%lx,%x", readahead_index(ractl), readahead_count(ractl)); in netfs_readahead()
173 if (readahead_count(ractl) == 0) in netfs_readahead()
176 rreq = netfs_alloc_request(ractl->mapping, ractl->file, in netfs_readahead()
177 readahead_pos(ractl), in netfs_readahead()
178 readahead_length(ractl), in netfs_readahead()
190 trace_netfs_read(rreq, readahead_pos(ractl), readahead_length(ractl), in netfs_readahead()
193 netfs_rreq_expand(rreq, ractl); in netfs_readahead()
198 while (readahead_folio(ractl)) in netfs_readahead()
406 netfs_rreq_expand(rreq, &ractl); in netfs_write_begin()
[all …]
/openbmc/linux/include/linux/
H A Dpagemap.h1288 #define DEFINE_READAHEAD(ractl, f, r, m, i) \ argument
1289 struct readahead_control ractl = { \
1325 page_cache_sync_ra(&ractl, req_count); in page_cache_sync_readahead()
1348 page_cache_async_ra(&ractl, folio, req_count); in page_cache_async_readahead()
1355 BUG_ON(ractl->_batch_count > ractl->_nr_pages); in __readahead_folio()
1356 ractl->_nr_pages -= ractl->_batch_count; in __readahead_folio()
1357 ractl->_index += ractl->_batch_count; in __readahead_folio()
1359 if (!ractl->_nr_pages) { in __readahead_folio()
1360 ractl->_batch_count = 0; in __readahead_folio()
1364 folio = xa_load(&ractl->mapping->i_pages, ractl->_index); 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.c4166 DEFINE_READAHEAD(ractl, NULL, NULL, inode->i_mapping, page_idx); in redirty_blocks()
4172 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
4614 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(ractl->file); 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()
4677 if (cifs_readpage_from_fscache(ractl->mapping->host, in cifs_readahead()
4739 rdata->mapping = ractl->mapping; in cifs_readahead()
[all …]
/openbmc/linux/Documentation/filesystems/
H A Dnetfs_library.rst137 void netfs_readahead(struct readahead_control *ractl);