/openbmc/linux/include/linux/ |
H A D | pagemap.h | 1404 static inline unsigned int __readahead_batch(struct readahead_control *rac, in __readahead_batch() argument 1408 XA_STATE(xas, &rac->mapping->i_pages, 0); in __readahead_batch() 1411 BUG_ON(rac->_batch_count > rac->_nr_pages); in __readahead_batch() 1412 rac->_nr_pages -= rac->_batch_count; in __readahead_batch() 1413 rac->_index += rac->_batch_count; in __readahead_batch() 1414 rac->_batch_count = 0; in __readahead_batch() 1416 xas_set(&xas, rac->_index); in __readahead_batch() 1418 xas_for_each(&xas, page, rac->_index + rac->_nr_pages - 1) { in __readahead_batch() 1424 rac->_batch_count += thp_nr_pages(page); in __readahead_batch() 1444 #define readahead_page_batch(rac, array) \ argument [all …]
|
/openbmc/linux/mm/ |
H A D | readahead.c | 146 static void read_pages(struct readahead_control *rac) in read_pages() argument 148 const struct address_space_operations *aops = rac->mapping->a_ops; in read_pages() 152 if (!readahead_count(rac)) in read_pages() 155 if (unlikely(rac->_workingset)) in read_pages() 156 psi_memstall_enter(&rac->_pflags); in read_pages() 160 aops->readahead(rac); in read_pages() 166 while ((folio = readahead_folio(rac)) != NULL) { in read_pages() 170 rac->ra->size -= nr; in read_pages() 171 if (rac->ra->async_size >= nr) { in read_pages() 172 rac->ra->async_size -= nr; in read_pages() [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | readpage.c | 219 struct readahead_control *rac, struct folio *folio) in ext4_mpage_readpages() argument 237 unsigned int nr_pages = rac ? readahead_count(rac) : 1; in ext4_mpage_readpages() 248 if (rac) in ext4_mpage_readpages() 249 folio = readahead_folio(rac); in ext4_mpage_readpages() 368 if (rac) in ext4_mpage_readpages()
|
/openbmc/linux/fs/orangefs/ |
H A D | inode.c | 241 static void orangefs_readahead(struct readahead_control *rac) in orangefs_readahead() argument 245 struct inode *inode = rac->mapping->host; in orangefs_readahead() 248 loff_t new_start = readahead_pos(rac); in orangefs_readahead() 252 loff_t bytes_remaining = inode->i_size - readahead_pos(rac); in orangefs_readahead() 257 else if (pages_remaining > readahead_count(rac)) in orangefs_readahead() 261 readahead_expand(rac, new_start, new_len); in orangefs_readahead() 263 offset = readahead_pos(rac); in orangefs_readahead() 264 i_pages = &rac->mapping->i_pages; in orangefs_readahead() 266 iov_iter_xarray(&iter, ITER_DEST, i_pages, offset, readahead_length(rac)); in orangefs_readahead() 270 &offset, &iter, readahead_length(rac), in orangefs_readahead() [all …]
|
/openbmc/linux/fs/erofs/ |
H A D | fscache.c | 304 static void erofs_fscache_readahead(struct readahead_control *rac) in erofs_fscache_readahead() argument 308 if (!readahead_count(rac)) in erofs_fscache_readahead() 311 req = erofs_fscache_req_alloc(rac->mapping, in erofs_fscache_readahead() 312 readahead_pos(rac), readahead_length(rac)); in erofs_fscache_readahead() 317 while (readahead_folio(rac)) in erofs_fscache_readahead()
|
H A D | zdata.c | 1776 struct readahead_control *rac, bool backmost) in z_erofs_pcluster_readmore() argument 1784 if (rac) in z_erofs_pcluster_readmore() 1785 end = headoffset + readahead_length(rac) - 1; in z_erofs_pcluster_readmore() 1795 if (rac) { in z_erofs_pcluster_readmore() 1797 readahead_expand(rac, headoffset, cur - headoffset); in z_erofs_pcluster_readmore() 1855 static void z_erofs_readahead(struct readahead_control *rac) in z_erofs_readahead() argument 1857 struct inode *const inode = rac->mapping->host; in z_erofs_readahead() 1864 f.headoffset = readahead_pos(rac); in z_erofs_readahead() 1866 z_erofs_pcluster_readmore(&f, rac, true); in z_erofs_readahead() 1867 nr_folios = readahead_count(rac); in z_erofs_readahead() [all …]
|
H A D | data.c | 364 static void erofs_readahead(struct readahead_control *rac) in erofs_readahead() argument 366 return iomap_readahead(rac, &erofs_iomap_ops); in erofs_readahead()
|
/openbmc/linux/fs/iomap/ |
H A D | buffered-io.c | 282 struct readahead_control *rac; member 376 if (ctx->rac) /* same as readahead_gfp_mask */ in iomap_readpage_iter() 389 if (ctx->rac) in iomap_readpage_iter() 457 ctx->cur_folio = readahead_folio(ctx->rac); in iomap_readahead_iter() 483 void iomap_readahead(struct readahead_control *rac, const struct iomap_ops *ops) in iomap_readahead() argument 486 .inode = rac->mapping->host, in iomap_readahead() 487 .pos = readahead_pos(rac), in iomap_readahead() 488 .len = readahead_length(rac), in iomap_readahead() 491 .rac = rac, in iomap_readahead() 494 trace_iomap_readahead(rac->mapping->host, readahead_count(rac)); in iomap_readahead()
|
/openbmc/linux/fs/gfs2/ |
H A D | aops.c | 525 static void gfs2_readahead(struct readahead_control *rac) in gfs2_readahead() argument 527 struct inode *inode = rac->mapping->host; in gfs2_readahead() 533 mpage_readahead(rac, gfs2_block_map); in gfs2_readahead() 535 iomap_readahead(rac, &gfs2_iomap_ops); in gfs2_readahead()
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | vc.c | 67 u8 rac; member 75 .rac = BIT(2), 89 .rac = BIT(3), 851 vc->cfg_channel |= vc_cfg_bits->rac; in omap_vc_init_channel()
|
/openbmc/linux/fs/ |
H A D | mpage.c | 370 void mpage_readahead(struct readahead_control *rac, get_block_t get_block) in mpage_readahead() argument 378 while ((folio = readahead_folio(rac))) { in mpage_readahead() 381 args.nr_pages = readahead_count(rac); in mpage_readahead()
|
/openbmc/linux/fs/hpfs/ |
H A D | file.c | 166 static void hpfs_readahead(struct readahead_control *rac) in hpfs_readahead() argument 168 mpage_readahead(rac, hpfs_get_block); in hpfs_readahead()
|
/openbmc/linux/drivers/s390/char/ |
H A D | tape_3590.h | 83 unsigned int rac:8; member
|
/openbmc/linux/block/ |
H A D | fops.c | 423 static void blkdev_readahead(struct readahead_control *rac) in blkdev_readahead() argument 425 mpage_readahead(rac, blkdev_get_block); in blkdev_readahead() 464 static void blkdev_readahead(struct readahead_control *rac) in blkdev_readahead() argument 466 iomap_readahead(rac, &blkdev_iomap_ops); in blkdev_readahead()
|
/openbmc/linux/fs/omfs/ |
H A D | file.c | 292 static void omfs_readahead(struct readahead_control *rac) in omfs_readahead() argument 294 mpage_readahead(rac, omfs_get_block); in omfs_readahead()
|
/openbmc/linux/fs/jfs/ |
H A D | inode.c | 278 static void jfs_readahead(struct readahead_control *rac) in jfs_readahead() argument 280 mpage_readahead(rac, jfs_get_block); in jfs_readahead()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_aops.c | 528 struct readahead_control *rac) in xfs_vm_readahead() argument 530 iomap_readahead(rac, &xfs_read_iomap_ops); in xfs_vm_readahead()
|
/openbmc/linux/fs/f2fs/ |
H A D | data.c | 2317 struct readahead_control *rac, struct page *page) in f2fs_mpage_readpages() argument 2335 unsigned nr_pages = rac ? readahead_count(rac) : 1; in f2fs_mpage_readpages() 2349 if (rac) { in f2fs_mpage_readpages() 2350 page = readahead_page(rac); in f2fs_mpage_readpages() 2361 rac != NULL, false); in f2fs_mpage_readpages() 2395 &bio, &last_block_in_bio, rac); in f2fs_mpage_readpages() 2406 if (rac) in f2fs_mpage_readpages() 2416 rac != NULL, false); in f2fs_mpage_readpages() 2448 static void f2fs_readahead(struct readahead_control *rac) in f2fs_readahead() argument 2450 struct inode *inode = rac->mapping->host; in f2fs_readahead() [all …]
|
/openbmc/linux/fs/exfat/ |
H A D | inode.c | 341 static void exfat_readahead(struct readahead_control *rac) in exfat_readahead() argument 343 mpage_readahead(rac, exfat_get_block); in exfat_readahead()
|
/openbmc/linux/arch/arm/boot/dts/ti/keystone/ |
H A D | keystone-k2hk-clocks.dtsi | 177 clock-output-names = "rac-01"; 187 clock-output-names = "rac-23";
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | keystone-k2hk-clocks.dtsi | 180 clock-output-names = "rac-01"; 190 clock-output-names = "rac-23";
|
/openbmc/linux/fs/qnx6/ |
H A D | inode.c | 102 static void qnx6_readahead(struct readahead_control *rac) in qnx6_readahead() argument 104 mpage_readahead(rac, qnx6_get_block); in qnx6_readahead()
|
/openbmc/linux/fs/btrfs/ |
H A D | extent_io.h | 194 void extent_readahead(struct readahead_control *rac);
|
/openbmc/linux/arch/arm/mm/ |
H A D | Makefile | 93 obj-$(CONFIG_CACHE_B15_RAC) += cache-b15-rac.o
|
/openbmc/linux/fs/zonefs/ |
H A D | file.c | 118 static void zonefs_readahead(struct readahead_control *rac) in zonefs_readahead() argument 120 iomap_readahead(rac, &zonefs_read_iomap_ops); in zonefs_readahead()
|