/linux/include/linux/ |
A D | pagemap.h | 1114 BUG_ON(rac->_batch_count > rac->_nr_pages); in __readahead_batch() 1115 rac->_nr_pages -= rac->_batch_count; in __readahead_batch() 1116 rac->_index += rac->_batch_count; in __readahead_batch() 1117 rac->_batch_count = 0; in __readahead_batch() 1119 xas_set(&xas, rac->_index); in __readahead_batch() 1121 xas_for_each(&xas, page, rac->_index + rac->_nr_pages - 1) { in __readahead_batch() 1136 xas_set(&xas, rac->_index + rac->_batch_count); in __readahead_batch() 1175 return rac->_nr_pages * PAGE_SIZE; in readahead_length() 1184 return rac->_index; in readahead_index() 1193 return rac->_nr_pages; in readahead_count() [all …]
|
/linux/mm/ |
A D | readahead.c | 123 if (!readahead_count(rac)) in read_pages() 129 aops->readahead(rac); in read_pages() 131 while ((page = readahead_page(rac))) { in read_pages() 136 aops->readpages(rac->file, rac->mapping, pages, in read_pages() 137 readahead_count(rac)); in read_pages() 140 rac->_index += rac->_nr_pages; in read_pages() 141 rac->_nr_pages = 0; in read_pages() 143 while ((page = readahead_page(rac))) { in read_pages() 144 aops->readpage(rac->file, page); in read_pages() 152 BUG_ON(readahead_count(rac)); in read_pages() [all …]
|
/linux/fs/ext4/ |
A D | readpage.c | 225 struct readahead_control *rac, struct page *page) in ext4_mpage_readpages() argument 243 unsigned int nr_pages = rac ? readahead_count(rac) : 1; in ext4_mpage_readpages() 254 if (rac) { in ext4_mpage_readpages() 255 page = readahead_page(rac); in ext4_mpage_readpages() 382 rac ? REQ_RAHEAD : 0); in ext4_mpage_readpages() 407 if (rac) in ext4_mpage_readpages()
|
/linux/fs/erofs/ |
A D | zdata.c | 1374 struct readahead_control *rac, in z_erofs_pcluster_readmore() argument 1392 if (rac) { in z_erofs_pcluster_readmore() 1393 loff_t newstart = readahead_pos(rac); in z_erofs_pcluster_readmore() 1396 readahead_expand(rac, newstart, cur - newstart); in z_erofs_pcluster_readmore() 1467 struct inode *const inode = rac->mapping->host; in z_erofs_readahead() 1474 f.headoffset = readahead_pos(rac); in z_erofs_readahead() 1476 z_erofs_pcluster_readmore(&f, rac, f.headoffset + in z_erofs_readahead() 1477 readahead_length(rac) - 1, &pagepool, true); in z_erofs_readahead() 1478 nr_pages = readahead_count(rac); in z_erofs_readahead() 1481 while ((page = readahead_page(rac))) { in z_erofs_readahead() [all …]
|
A D | data.c | 294 static void erofs_readahead(struct readahead_control *rac) in erofs_readahead() argument 296 return iomap_readahead(rac, &erofs_iomap_ops); in erofs_readahead()
|
/linux/fs/orangefs/ |
A 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() 277 &offset, &iter, readahead_length(rac), in orangefs_readahead() 278 inode->i_size, NULL, NULL, rac->file)) < 0) in orangefs_readahead() [all …]
|
/linux/fs/iomap/ |
A D | buffered-io.c | 205 struct readahead_control *rac; member 298 if (ctx->rac) /* same as readahead_gfp_mask */ in iomap_readpage_iter() 309 if (ctx->rac) in iomap_readpage_iter() 378 ctx->cur_page = readahead_page(ctx->rac); in iomap_readahead_iter() 404 void iomap_readahead(struct readahead_control *rac, const struct iomap_ops *ops) in iomap_readahead() argument 407 .inode = rac->mapping->host, in iomap_readahead() 408 .pos = readahead_pos(rac), in iomap_readahead() 409 .len = readahead_length(rac), in iomap_readahead() 412 .rac = rac, in iomap_readahead() 415 trace_iomap_readahead(rac->mapping->host, readahead_count(rac)); in iomap_readahead()
|
/linux/fs/gfs2/ |
A D | aops.c | 556 static void gfs2_readahead(struct readahead_control *rac) in gfs2_readahead() argument 558 struct inode *inode = rac->mapping->host; in gfs2_readahead() 564 mpage_readahead(rac, gfs2_block_map); in gfs2_readahead() 566 iomap_readahead(rac, &gfs2_iomap_ops); in gfs2_readahead()
|
/linux/arch/arm/mach-omap2/ |
A D | vc.c | 70 u8 rac; member 78 .rac = BIT(2), 92 .rac = BIT(3), 869 vc->cfg_channel |= vc_cfg_bits->rac; in omap_vc_init_channel()
|
/linux/fs/ |
A D | mpage.c | 377 void mpage_readahead(struct readahead_control *rac, get_block_t get_block) in mpage_readahead() argument 385 while ((page = readahead_page(rac))) { in mpage_readahead() 388 args.nr_pages = readahead_count(rac); in mpage_readahead()
|
/linux/fs/hpfs/ |
A 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/drivers/s390/char/ |
A D | tape_3590.h | 83 unsigned int rac:8; member
|
/linux/fs/omfs/ |
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()
|
/linux/fs/jfs/ |
A D | inode.c | 300 static void jfs_readahead(struct readahead_control *rac) in jfs_readahead() argument 302 mpage_readahead(rac, jfs_get_block); in jfs_readahead()
|
/linux/fs/f2fs/ |
A D | data.c | 2374 struct readahead_control *rac, struct page *page) in f2fs_mpage_readpages() argument 2392 unsigned nr_pages = rac ? readahead_count(rac) : 1; in f2fs_mpage_readpages() 2406 if (rac) { in f2fs_mpage_readpages() 2407 page = readahead_page(rac); in f2fs_mpage_readpages() 2418 rac != NULL, false); in f2fs_mpage_readpages() 2452 &bio, &last_block_in_bio, rac); in f2fs_mpage_readpages() 2464 if (rac) in f2fs_mpage_readpages() 2474 rac != NULL, false); in f2fs_mpage_readpages() 2507 struct inode *inode = rac->mapping->host; in f2fs_readahead() 2509 trace_f2fs_readpages(inode, readahead_index(rac), readahead_count(rac)); in f2fs_readahead() [all …]
|
/linux/fs/xfs/ |
A D | xfs_aops.c | 536 struct readahead_control *rac) in xfs_vm_readahead() argument 538 iomap_readahead(rac, &xfs_read_iomap_ops); in xfs_vm_readahead()
|
/linux/block/ |
A D | fops.c | 399 static void blkdev_readahead(struct readahead_control *rac) in blkdev_readahead() argument 401 mpage_readahead(rac, blkdev_get_block); in blkdev_readahead()
|
/linux/fs/qnx6/ |
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()
|
/linux/arch/arm/boot/dts/ |
A D | keystone-k2hk-clocks.dtsi | 177 clock-output-names = "rac-01"; 187 clock-output-names = "rac-23";
|
/linux/fs/ntfs3/ |
A D | inode.c | 707 static void ntfs_readahead(struct readahead_control *rac) in ntfs_readahead() argument 709 struct address_space *mapping = rac->mapping; in ntfs_readahead() 726 pos = readahead_pos(rac); in ntfs_readahead() 729 valid < pos + readahead_length(rac)) { in ntfs_readahead() 734 mpage_readahead(rac, ntfs_get_block); in ntfs_readahead()
|
/linux/fs/exfat/ |
A D | inode.c | 366 static void exfat_readahead(struct readahead_control *rac) in exfat_readahead() argument 368 mpage_readahead(rac, exfat_get_block); in exfat_readahead()
|
/linux/arch/arm/mm/ |
A D | Makefile | 108 obj-$(CONFIG_CACHE_B15_RAC) += cache-b15-rac.o
|
/linux/fs/btrfs/ |
A D | extent_io.h | 192 void extent_readahead(struct readahead_control *rac);
|
/linux/arch/powerpc/kernel/ |
A D | prom_init.c | 1656 u32 rac, rsc; in prom_init_mem() local 1665 rac = be32_to_cpu(val); in prom_init_mem() 1669 prom_debug("root_addr_cells: %x\n", rac); in prom_init_mem() 1703 while ((endp - p) >= (rac + rsc)) { in prom_init_mem() 1706 base = prom_next_cell(rac, &p); in prom_init_mem()
|
/linux/fs/ocfs2/ |
A D | aops.c | 351 static void ocfs2_readahead(struct readahead_control *rac) in ocfs2_readahead() argument 354 struct inode *inode = rac->mapping->host; in ocfs2_readahead() 379 if (readahead_pos(rac) >= i_size_read(inode)) in ocfs2_readahead() 382 mpage_readahead(rac, ocfs2_get_block); in ocfs2_readahead()
|