| /linux/include/linux/ |
| H A D | pagemap.h | 1520 static inline unsigned int __readahead_batch(struct readahead_control *rac, in __readahead_batch() argument 1524 XA_STATE(xas, &rac->mapping->i_pages, 0); in __readahead_batch() 1527 BUG_ON(rac->_batch_count > rac->_nr_pages); in __readahead_batch() 1528 rac->_nr_pages -= rac->_batch_count; in __readahead_batch() 1529 rac->_index += rac->_batch_count; in __readahead_batch() 1530 rac->_batch_count = 0; in __readahead_batch() 1532 xas_set(&xas, rac->_index); in __readahead_batch() 1534 xas_for_each(&xas, folio, rac->_index + rac->_nr_pages - 1) { in __readahead_batch() 1539 rac->_batch_count += folio_nr_pages(folio); in __readahead_batch() 1552 static inline loff_t readahead_pos(const struct readahead_control *rac) in readahead_pos() argument [all …]
|
| H A D | iomap.h | 583 struct readahead_control *rac; member 782 static inline void iomap_bio_readahead(struct readahead_control *rac, in iomap_bio_readahead() argument 787 .rac = rac, in iomap_bio_readahead()
|
| /linux/mm/ |
| H A D | readahead.c | 160 static void read_pages(struct readahead_control *rac) in read_pages() argument 162 const struct address_space_operations *aops = rac->mapping->a_ops; in read_pages() 166 if (!readahead_count(rac)) in read_pages() 169 if (unlikely(rac->_workingset)) in read_pages() 170 psi_memstall_enter(&rac->_pflags); in read_pages() 174 aops->readahead(rac); in read_pages() 176 while ((folio = readahead_folio(rac)) != NULL) { in read_pages() 183 while ((folio = readahead_folio(rac)) != NULL) in read_pages() 184 aops->read_folio(rac->file, folio); in read_pages() 188 if (unlikely(rac->_workingset)) in read_pages() [all …]
|
| /linux/fs/erofs/ |
| H A D | fileio.c | 172 static void erofs_fileio_readahead(struct readahead_control *rac) in erofs_fileio_readahead() argument 175 struct inode *realinode = erofs_real_inode(rac->mapping->host, &need_iput); in erofs_fileio_readahead() 180 trace_erofs_readahead(realinode, readahead_index(rac), in erofs_fileio_readahead() 181 readahead_count(rac), true); in erofs_fileio_readahead() 182 while ((folio = readahead_folio(rac))) { in erofs_fileio_readahead()
|
| H A D | data.c | 412 static void erofs_readahead(struct readahead_control *rac) in erofs_readahead() argument 416 .rac = rac, in erofs_readahead() 420 .realinode = erofs_real_inode(rac->mapping->host, &need_iput), in erofs_readahead() 423 trace_erofs_readahead(iter_ctx.realinode, readahead_index(rac), in erofs_readahead() 424 readahead_count(rac), true); in erofs_readahead()
|
| H A D | zdata.c | 1803 struct readahead_control *rac, bool backmost) in z_erofs_pcluster_readmore() argument 1811 if (rac) in z_erofs_pcluster_readmore() 1812 end = headoffset + readahead_length(rac) - 1; in z_erofs_pcluster_readmore() 1822 if (rac) { in z_erofs_pcluster_readmore() 1824 readahead_expand(rac, headoffset, cur - headoffset); in z_erofs_pcluster_readmore() 1844 z_erofs_scan_folio(f, folio, !!rac); in z_erofs_pcluster_readmore() 1882 static void z_erofs_readahead(struct readahead_control *rac) in z_erofs_readahead() argument 1884 struct inode *sharedinode = rac->mapping->host; in z_erofs_readahead() 1887 Z_EROFS_DEFINE_FRONTEND(f, realinode, sharedinode, readahead_pos(rac)); in z_erofs_readahead() 1888 unsigned int nrpages = readahead_count(rac); in z_erofs_readahead() [all …]
|
| /linux/fs/ntfs/ |
| H A D | aops.c | 232 static void ntfs_readahead(struct readahead_control *rac) in ntfs_readahead() argument 234 struct address_space *mapping = rac->mapping; in ntfs_readahead() 239 .rac = rac, in ntfs_readahead()
|
| /linux/fs/orangefs/ |
| H A D | inode.c | 217 static void orangefs_readahead(struct readahead_control *rac) in orangefs_readahead() argument 221 struct inode *inode = rac->mapping->host; in orangefs_readahead() 224 loff_t new_start = readahead_pos(rac); in orangefs_readahead() 230 loff_t bytes_remaining = inode->i_size - readahead_pos(rac); in orangefs_readahead() 235 else if (pages_remaining > readahead_count(rac)) in orangefs_readahead() 239 readahead_expand(rac, new_start, new_len); in orangefs_readahead() 241 offset = readahead_pos(rac); in orangefs_readahead() 242 i_pages = &rac->mapping->i_pages; in orangefs_readahead() 245 offset, readahead_length(rac)); in orangefs_readahead() 247 remaining = readahead_length(rac); in orangefs_readahead() [all …]
|
| /linux/fs/f2fs/ |
| H A D | data.c | 2208 static inline blk_opf_t f2fs_ra_op_flags(struct readahead_control *rac) in f2fs_ra_op_flags() argument 2210 return rac ? REQ_RAHEAD : 0; in f2fs_ra_op_flags() 2218 struct readahead_control *rac) in f2fs_read_single_page() argument 2296 f2fs_ra_op_flags(rac), index, false); in f2fs_read_single_page() 2319 struct readahead_control *rac, bool for_write) in f2fs_read_multi_pages() argument 2448 f2fs_ra_op_flags(rac), in f2fs_read_multi_pages() 2518 struct readahead_control *rac, struct folio *folio) in f2fs_read_data_large_folio() argument 2524 unsigned max_nr_pages = rac ? readahead_count(rac) : in f2fs_read_data_large_folio() 2539 if (rac) in f2fs_read_data_large_folio() 2540 folio = readahead_folio(rac); in f2fs_read_data_large_folio() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_aops.c | 626 struct readahead_control *rac) in xfs_vm_readahead() argument 628 struct iomap_read_folio_ctx ctx = { .rac = rac }; in xfs_vm_readahead() 630 ctx.ops = xfs_get_iomap_read_ops(rac->mapping), in xfs_vm_readahead()
|
| /linux/fs/iomap/ |
| H A D | bio.c | 124 if (ctx->rac) in iomap_read_alloc_bio() 137 if (ctx->rac) in iomap_read_alloc_bio()
|
| H A D | buffered-io.c | 699 ctx->cur_folio = readahead_folio(ctx->rac); in iomap_readahead_iter() 731 struct readahead_control *rac = ctx->rac; in iomap_readahead() local 733 .inode = rac->mapping->host, in iomap_readahead() 734 .pos = readahead_pos(rac), in iomap_readahead() 735 .len = readahead_length(rac), in iomap_readahead() 740 trace_iomap_readahead(rac->mapping->host, readahead_count(rac)); in iomap_readahead() 748 fsverity_readahead(ctx->vi, readahead_index(rac), in iomap_readahead() 749 readahead_count(rac)); in iomap_readahead()
|
| /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()
|
| /linux/fs/ |
| H A D | mpage.c | 358 void mpage_readahead(struct readahead_control *rac, get_block_t get_block) in mpage_readahead() argument 366 while ((folio = readahead_folio(rac))) { in mpage_readahead() 369 args.nr_pages = readahead_count(rac); in mpage_readahead()
|
| /linux/block/ |
| H A D | fops.c | 503 static void blkdev_readahead(struct readahead_control *rac) 505 mpage_readahead(rac, blkdev_get_block); 524 static void blkdev_readahead(struct readahead_control *rac) in blkdev_writeback_range() 526 iomap_bio_readahead(rac, &blkdev_iomap_ops); in blkdev_writeback_range() 498 blkdev_readahead(struct readahead_control * rac) blkdev_readahead() argument 519 blkdev_readahead(struct readahead_control * rac) blkdev_readahead() argument
|
| /linux/fs/fuse/ |
| H A D | file.c | 917 struct readahead_control *rac, in fuse_handle_readahead() argument 937 rac->ra->async_size >= readahead_count(rac)) in fuse_handle_readahead() 944 nr_pages = min(fc->max_pages, readahead_count(rac)); in fuse_handle_readahead() 972 if (ctx->rac) { in fuse_iomap_read_folio_range_async() 973 ret = fuse_handle_readahead(folio, ctx->rac, data, pos, len); in fuse_iomap_read_folio_range_async() 1093 static void fuse_readahead(struct readahead_control *rac) in fuse_readahead() argument 1095 struct inode *inode = rac->mapping->host; in fuse_readahead() 1098 .file = rac->file, in fuse_readahead() 1103 .rac = rac, in fuse_readahead()
|
| /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";
|
| H A D | keystone-k2l-clocks.dtsi | 108 clock-output-names = "rac";
|
| /linux/arch/arm/mm/ |
| H A D | Makefile | 95 obj-$(CONFIG_CACHE_B15_RAC) += cache-b15-rac.o
|
| /linux/fs/btrfs/ |
| H A D | extent_io.h | 288 void btrfs_readahead(struct readahead_control *rac);
|
| H A D | extent_io.c | 2981 void btrfs_readahead(struct readahead_control *rac) in btrfs_readahead() argument 2985 .ractl = rac, in btrfs_readahead() 2989 struct inode *vfs_inode = rac->mapping->host; in btrfs_readahead() 2991 const u64 start = readahead_pos(rac); in btrfs_readahead() 2992 const u64 end = start + readahead_length(rac) - 1; in btrfs_readahead() 3003 while ((folio = readahead_folio(rac)) != NULL) { in btrfs_readahead()
|
| /linux/fs/ntfs3/ |
| H A D | inode.c | 860 static void ntfs_readahead(struct readahead_control *rac) in ntfs_readahead() argument 862 struct address_space *mapping = rac->mapping; in ntfs_readahead() 867 .rac = rac, in ntfs_readahead()
|
| /linux/fs/udf/ |
| H A D | inode.c | 234 static void udf_readahead(struct readahead_control *rac) in udf_readahead() argument 236 struct udf_inode_info *iinfo = UDF_I(rac->mapping->host); in udf_readahead() 245 mpage_readahead(rac, udf_get_block); in udf_readahead()
|
| /linux/Documentation/filesystems/iomap/ |
| H A D | operations.rst | 214 struct readahead_control *rac; 219 * ``ops->read_folio_range()`` and ``rac``
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-npei-defs.h | 3807 uint64_t rac:1; member 3817 uint64_t rac:1;
|