Home
last modified time | relevance | path

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

/linux/mm/
H A Dreadahead.c195 static struct folio *ractl_alloc_folio(struct readahead_control *ractl, in ractl_alloc_folio() argument
201 if (folio && ractl->dropbehind) in ractl_alloc_folio()
222 void page_cache_ra_unbounded(struct readahead_control *ractl, in page_cache_ra_unbounded() argument
225 struct address_space *mapping = ractl->mapping; in page_cache_ra_unbounded()
226 unsigned long index = readahead_index(ractl); in page_cache_ra_unbounded()
258 ra_folio_index = round_up(readahead_index(ractl) + in page_cache_ra_unbounded()
263 nr_to_read += readahead_index(ractl) - index; in page_cache_ra_unbounded()
264 ractl->_index = index; in page_cache_ra_unbounded()
282 read_pages(ractl); in page_cache_ra_unbounded()
283 ractl->_index += min_nrpages; in page_cache_ra_unbounded()
[all …]
/linux/fs/netfs/
H A Dbuffered_read.c24 struct readahead_control *ractl) in netfs_rreq_expand() argument
46 if (rreq->start != readahead_pos(ractl) || in netfs_rreq_expand()
47 rreq->len != readahead_length(ractl)) { in netfs_rreq_expand()
48 readahead_expand(ractl, rreq->start, rreq->len); in netfs_rreq_expand()
49 rreq->start = readahead_pos(ractl); in netfs_rreq_expand()
50 rreq->len = readahead_length(ractl); in netfs_rreq_expand()
52 trace_netfs_read(rreq, readahead_pos(ractl), readahead_length(ractl), in netfs_rreq_expand()
82 struct readahead_control *ractl) in netfs_prepare_read_iterator() argument
90 if (ractl) { in netfs_prepare_read_iterator()
103 added = rolling_buffer_load_from_ra(&rreq->buffer, ractl, in netfs_prepare_read_iterator()
[all …]
H A Drolling_buffer.c121 struct readahead_control *ractl, in rolling_buffer_load_from_ra() argument
134 nr = __readahead_batch(ractl, vec + folio_batch_count(&fq->vec), in rolling_buffer_load_from_ra()
/linux/fs/squashfs/
H A Dfile.c574 static void squashfs_readahead(struct readahead_control *ractl) in squashfs_readahead() argument
576 struct inode *inode = ractl->mapping->host; in squashfs_readahead()
580 loff_t start = readahead_pos(ractl) & ~mask; in squashfs_readahead()
581 size_t len = readahead_length(ractl) + readahead_pos(ractl) - start; in squashfs_readahead()
589 readahead_expand(ractl, start, (len | mask) + 1); in squashfs_readahead()
607 nr_pages = __readahead_batch(ractl, pages, max_pages); in squashfs_readahead()
611 if (readahead_pos(ractl) >= i_size_read(inode)) in squashfs_readahead()
656 start += readahead_batch_length(ractl); in squashfs_readahead()
/linux/fs/nfs/
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()
/linux/include/linux/
H A Drolling_buffer.h49 struct readahead_control *ractl,
/linux/fs/btrfs/
H A Dextent_io.c136 struct readahead_control *ractl; member
1028 static void btrfs_readahead_expand(struct readahead_control *ractl, in btrfs_readahead_expand() argument
1031 const u64 ra_pos = readahead_pos(ractl); in btrfs_readahead_expand()
1032 const u64 ra_end = ra_pos + readahead_length(ractl); in btrfs_readahead_expand()
1043 readahead_expand(ractl, ra_pos, em_end - ra_pos); in btrfs_readahead_expand()
1068 if (bio_ctrl->ractl) in btrfs_do_readpage()
1069 locked_end = readahead_pos(bio_ctrl->ractl) + readahead_length(bio_ctrl->ractl) - 1; in btrfs_do_readpage()
1130 if (bio_ctrl->ractl && in btrfs_do_readpage()
1133 btrfs_readahead_expand(bio_ctrl->ractl, em); in btrfs_do_readpage()
2985 .ractl = rac, in btrfs_readahead()