/Linux-v6.1/include/linux/ |
D | pagemap.h | 1292 static inline unsigned int __readahead_batch(struct readahead_control *rac, in __readahead_batch() argument 1296 XA_STATE(xas, &rac->mapping->i_pages, 0); in __readahead_batch() 1299 BUG_ON(rac->_batch_count > rac->_nr_pages); in __readahead_batch() 1300 rac->_nr_pages -= rac->_batch_count; in __readahead_batch() 1301 rac->_index += rac->_batch_count; in __readahead_batch() 1302 rac->_batch_count = 0; in __readahead_batch() 1304 xas_set(&xas, rac->_index); in __readahead_batch() 1306 xas_for_each(&xas, page, rac->_index + rac->_nr_pages - 1) { in __readahead_batch() 1312 rac->_batch_count += thp_nr_pages(page); in __readahead_batch() 1332 #define readahead_page_batch(rac, array) \ argument [all …]
|
/Linux-v6.1/mm/ |
D | readahead.c | 147 static void read_pages(struct readahead_control *rac) in read_pages() argument 149 const struct address_space_operations *aops = rac->mapping->a_ops; in read_pages() 153 if (!readahead_count(rac)) in read_pages() 156 if (unlikely(rac->_workingset)) in read_pages() 157 psi_memstall_enter(&rac->_pflags); in read_pages() 161 aops->readahead(rac); in read_pages() 167 while ((folio = readahead_folio(rac)) != NULL) { in read_pages() 171 rac->ra->size -= nr; in read_pages() 172 if (rac->ra->async_size >= nr) { in read_pages() 173 rac->ra->async_size -= nr; in read_pages() [all …]
|
/Linux-v6.1/fs/ext4/ |
D | readpage.c | 226 struct readahead_control *rac, struct page *page) in ext4_mpage_readpages() argument 244 unsigned int nr_pages = rac ? readahead_count(rac) : 1; in ext4_mpage_readpages() 255 if (rac) { in ext4_mpage_readpages() 256 page = readahead_page(rac); in ext4_mpage_readpages() 377 if (rac) in ext4_mpage_readpages() 403 if (rac) in ext4_mpage_readpages()
|
/Linux-v6.1/fs/orangefs/ |
D | inode.c | 248 static void orangefs_readahead(struct readahead_control *rac) in orangefs_readahead() argument 252 struct inode *inode = rac->mapping->host; in orangefs_readahead() 255 loff_t new_start = readahead_pos(rac); in orangefs_readahead() 259 loff_t bytes_remaining = inode->i_size - readahead_pos(rac); in orangefs_readahead() 264 else if (pages_remaining > readahead_count(rac)) in orangefs_readahead() 268 readahead_expand(rac, new_start, new_len); in orangefs_readahead() 270 offset = readahead_pos(rac); in orangefs_readahead() 271 i_pages = &rac->mapping->i_pages; in orangefs_readahead() 273 iov_iter_xarray(&iter, READ, i_pages, offset, readahead_length(rac)); in orangefs_readahead() 277 &offset, &iter, readahead_length(rac), in orangefs_readahead() [all …]
|
/Linux-v6.1/fs/erofs/ |
D | fscache.c | 348 static void erofs_fscache_readahead(struct readahead_control *rac) in erofs_fscache_readahead() argument 356 if (!readahead_count(rac)) in erofs_fscache_readahead() 359 start = readahead_pos(rac); in erofs_fscache_readahead() 360 len = readahead_length(rac); in erofs_fscache_readahead() 364 ret = erofs_fscache_data_read(rac->mapping, pos, in erofs_fscache_readahead() 371 folio = readahead_folio(rac); in erofs_fscache_readahead()
|
D | zdata.c | 1553 struct readahead_control *rac, in z_erofs_pcluster_readmore() argument 1571 if (rac) { in z_erofs_pcluster_readmore() 1572 loff_t newstart = readahead_pos(rac); in z_erofs_pcluster_readmore() 1575 readahead_expand(rac, newstart, cur - newstart); in z_erofs_pcluster_readmore() 1642 static void z_erofs_readahead(struct readahead_control *rac) in z_erofs_readahead() argument 1644 struct inode *const inode = rac->mapping->host; in z_erofs_readahead() 1651 f.headoffset = readahead_pos(rac); in z_erofs_readahead() 1653 z_erofs_pcluster_readmore(&f, rac, f.headoffset + in z_erofs_readahead() 1654 readahead_length(rac) - 1, &pagepool, true); in z_erofs_readahead() 1655 nr_pages = readahead_count(rac); in z_erofs_readahead() [all …]
|
D | data.c | 359 static void erofs_readahead(struct readahead_control *rac) in erofs_readahead() argument 361 return iomap_readahead(rac, &erofs_iomap_ops); in erofs_readahead()
|
/Linux-v6.1/fs/iomap/ |
D | buffered-io.c | 201 struct readahead_control *rac; member 298 if (ctx->rac) /* same as readahead_gfp_mask */ in iomap_readpage_iter() 311 if (ctx->rac) in iomap_readpage_iter() 379 ctx->cur_folio = readahead_folio(ctx->rac); in iomap_readahead_iter() 405 void iomap_readahead(struct readahead_control *rac, const struct iomap_ops *ops) in iomap_readahead() argument 408 .inode = rac->mapping->host, in iomap_readahead() 409 .pos = readahead_pos(rac), in iomap_readahead() 410 .len = readahead_length(rac), in iomap_readahead() 413 .rac = rac, in iomap_readahead() 416 trace_iomap_readahead(rac->mapping->host, readahead_count(rac)); in iomap_readahead()
|
/Linux-v6.1/fs/gfs2/ |
D | aops.c | 524 static void gfs2_readahead(struct readahead_control *rac) in gfs2_readahead() argument 526 struct inode *inode = rac->mapping->host; in gfs2_readahead() 532 mpage_readahead(rac, gfs2_block_map); in gfs2_readahead() 534 iomap_readahead(rac, &gfs2_iomap_ops); in gfs2_readahead()
|
/Linux-v6.1/arch/arm/mach-omap2/ |
D | vc.c | 67 u8 rac; member 75 .rac = BIT(2), 89 .rac = BIT(3), 866 vc->cfg_channel |= vc_cfg_bits->rac; in omap_vc_init_channel()
|
/Linux-v6.1/fs/ |
D | mpage.c | 349 void mpage_readahead(struct readahead_control *rac, get_block_t get_block) in mpage_readahead() argument 357 while ((folio = readahead_folio(rac))) { in mpage_readahead() 360 args.nr_pages = readahead_count(rac); in mpage_readahead()
|
/Linux-v6.1/drivers/s390/char/ |
D | tape_3590.h | 83 unsigned int rac:8; member
|
/Linux-v6.1/fs/hpfs/ |
D | file.c | 171 static void hpfs_readahead(struct readahead_control *rac) in hpfs_readahead() argument 173 mpage_readahead(rac, hpfs_get_block); in hpfs_readahead()
|
/Linux-v6.1/fs/jfs/ |
D | inode.c | 283 static void jfs_readahead(struct readahead_control *rac) in jfs_readahead() argument 285 mpage_readahead(rac, jfs_get_block); in jfs_readahead()
|
/Linux-v6.1/fs/omfs/ |
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()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_aops.c | 548 struct readahead_control *rac) in xfs_vm_readahead() argument 550 iomap_readahead(rac, &xfs_read_iomap_ops); in xfs_vm_readahead()
|
/Linux-v6.1/fs/f2fs/ |
D | data.c | 2323 struct readahead_control *rac, struct page *page) in f2fs_mpage_readpages() argument 2341 unsigned nr_pages = rac ? readahead_count(rac) : 1; in f2fs_mpage_readpages() 2355 if (rac) { in f2fs_mpage_readpages() 2356 page = readahead_page(rac); in f2fs_mpage_readpages() 2367 rac != NULL, false); in f2fs_mpage_readpages() 2401 &bio, &last_block_in_bio, rac); in f2fs_mpage_readpages() 2413 if (rac) in f2fs_mpage_readpages() 2423 rac != NULL, false); in f2fs_mpage_readpages() 2455 static void f2fs_readahead(struct readahead_control *rac) in f2fs_readahead() argument 2457 struct inode *inode = rac->mapping->host; in f2fs_readahead() [all …]
|
/Linux-v6.1/fs/qnx6/ |
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()
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | keystone-k2hk-clocks.dtsi | 177 clock-output-names = "rac-01"; 187 clock-output-names = "rac-23";
|
/Linux-v6.1/fs/btrfs/ |
D | extent_io.h | 157 void extent_readahead(struct readahead_control *rac);
|
/Linux-v6.1/arch/arm/mm/ |
D | Makefile | 108 obj-$(CONFIG_CACHE_B15_RAC) += cache-b15-rac.o
|
/Linux-v6.1/fs/exfat/ |
D | inode.c | 343 static void exfat_readahead(struct readahead_control *rac) in exfat_readahead() argument 345 mpage_readahead(rac, exfat_get_block); in exfat_readahead()
|
/Linux-v6.1/block/ |
D | fops.c | 384 static void blkdev_readahead(struct readahead_control *rac) in blkdev_readahead() argument 386 mpage_readahead(rac, blkdev_get_block); in blkdev_readahead()
|
/Linux-v6.1/fs/ntfs3/ |
D | inode.c | 706 static void ntfs_readahead(struct readahead_control *rac) in ntfs_readahead() argument 708 struct address_space *mapping = rac->mapping; in ntfs_readahead() 725 pos = readahead_pos(rac); in ntfs_readahead() 728 valid < pos + readahead_length(rac)) { in ntfs_readahead() 733 mpage_readahead(rac, ntfs_get_block); in ntfs_readahead()
|
/Linux-v6.1/fs/fuse/ |
D | file.c | 967 static void fuse_readahead(struct readahead_control *rac) in fuse_readahead() argument 969 struct inode *inode = rac->mapping->host; in fuse_readahead() 984 rac->ra->async_size >= readahead_count(rac)) in fuse_readahead() 991 nr_pages = readahead_count(rac) - nr_pages; in fuse_readahead() 1000 nr_pages = __readahead_batch(rac, ap->pages, nr_pages); in fuse_readahead() 1003 readahead_index(rac) + i); in fuse_readahead() 1007 fuse_send_readpages(ia, rac->file); in fuse_readahead()
|