/linux-6.6.21/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 196 int ra_pages = 0; in TEST() local 257 ra_pages++; in TEST() 260 EXPECT_GT(ra_pages, 0) { in TEST() 301 int ra_pages = 0; in TEST() local 356 ra_pages++; in TEST() 359 ASSERT_EQ(ra_pages, 0) { in TEST()
|
/linux-6.6.21/mm/ |
D | fadvise.c | 80 file->f_ra.ra_pages = bdi->ra_pages; in generic_fadvise() 91 file->f_ra.ra_pages = bdi->ra_pages * 2; in generic_fadvise()
|
D | readahead.c | 141 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init() 322 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra() 557 unsigned long max_pages = ra->ra_pages; in ondemand_readahead() 682 if (!ractl->ra->ra_pages || blk_cgroup_congested()) { in page_cache_sync_ra() 703 if (!ractl->ra->ra_pages) in page_cache_async_ra()
|
D | backing-dev.c | 145 bdi->ra_pages = read_ahead_kb >> (PAGE_SHIFT - 10); in read_ahead_kb_store() 160 BDI_SHOW(read_ahead_kb, K(bdi->ra_pages)) 941 bdi->ra_pages = VM_READAHEAD_PAGES; in bdi_alloc()
|
D | filemap.c | 2317 ra->ra_pages /= 4; in shrink_readahead_size_eio() 3179 if (!ra->ra_pages) in do_sync_mmap_readahead() 3184 page_cache_sync_ra(&ractl, ra->ra_pages); in do_sync_mmap_readahead() 3204 ra->start = max_t(long, 0, vmf->pgoff - ra->ra_pages / 2); in do_sync_mmap_readahead() 3205 ra->size = ra->ra_pages; in do_sync_mmap_readahead() 3206 ra->async_size = ra->ra_pages / 4; in do_sync_mmap_readahead() 3227 if (vmf->vma->vm_flags & VM_RAND_READ || !ra->ra_pages) in do_async_mmap_readahead() 3236 page_cache_async_ra(&ractl, folio, ra->ra_pages); in do_async_mmap_readahead()
|
/linux-6.6.21/fs/fat/ |
D | fatent.c | 659 unsigned long ra_pages = sb->s_bdi->ra_pages; in fat_ra_init() local 665 if (ra_pages > sb->s_bdi->io_pages) in fat_ra_init() 666 ra_pages = rounddown(ra_pages, sb->s_bdi->io_pages); in fat_ra_init() 667 reada_blocks = ra_pages << (PAGE_SHIFT - sb->s_blocksize_bits + 1); in fat_ra_init()
|
/linux-6.6.21/fs/9p/ |
D | vfs_super.c | 80 sb->s_bdi->ra_pages = 0; in v9fs_fill_super() 83 sb->s_bdi->ra_pages = v9ses->maxdata >> PAGE_SHIFT; in v9fs_fill_super()
|
/linux-6.6.21/include/linux/ |
D | backing-dev-defs.h | 167 unsigned long ra_pages; /* max readahead in PAGE_SIZE units */ member
|
D | fs.h | 974 unsigned int ra_pages; member
|
/linux-6.6.21/block/ |
D | ioctl.c | 549 bdev->bd_disk->bdi->ra_pages = (arg * 512) / PAGE_SIZE; in blkdev_common_ioctl() 604 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in blkdev_ioctl() 664 (bdev->bd_disk->bdi->ra_pages * PAGE_SIZE) / 512); in compat_blkdev_ioctl()
|
D | blk-settings.c | 399 disk->bdi->ra_pages = in disk_update_readahead() 485 q->disk->bdi->ra_pages = in blk_queue_io_opt()
|
D | blk-sysfs.c | 84 ra_kb = q->disk->bdi->ra_pages << (PAGE_SHIFT - 10); in queue_ra_show() 99 q->disk->bdi->ra_pages = ra_kb >> (PAGE_SHIFT - 10); in queue_ra_store()
|
/linux-6.6.21/fs/fuse/ |
D | inode.c | 1204 unsigned long ra_pages; in process_init_reply() local 1214 ra_pages = arg->max_readahead / PAGE_SIZE; in process_init_reply() 1290 ra_pages = fc->max_read / PAGE_SIZE; in process_init_reply() 1295 fm->sb->s_bdi->ra_pages = in process_init_reply() 1296 min(fm->sb->s_bdi->ra_pages, ra_pages); in process_init_reply() 1322 ia->in.max_readahead = fm->sb->s_bdi->ra_pages * PAGE_SIZE; in fuse_send_init()
|
/linux-6.6.21/fs/vboxsf/ |
D | super.c | 167 sb->s_bdi->ra_pages = 0; in vboxsf_fill_super()
|
/linux-6.6.21/fs/smb/client/ |
D | file.c | 4488 unsigned int ra_pages; in cifs_readahead() local 4499 ra_pages = readahead_count(ractl); in cifs_readahead() 4512 __func__, ractl->file, ractl->mapping, ra_pages); in cifs_readahead() 4517 while ((nr_pages = ra_pages)) { in cifs_readahead() 4546 ra_pages -= fsize; in cifs_readahead() 4584 nr_pages = min_t(size_t, rsize / PAGE_SIZE, ra_pages); in cifs_readahead() 4618 ra_pages -= nr_pages; in cifs_readahead()
|
D | cifsfs.c | 251 sb->s_bdi->ra_pages = cifs_sb->ctx->rasize / PAGE_SIZE; in cifs_read_super() 253 sb->s_bdi->ra_pages = 2 * (cifs_sb->ctx->rsize / PAGE_SIZE); in cifs_read_super()
|
/linux-6.6.21/fs/smb/server/ |
D | vfs.c | 964 filp->f_ra.ra_pages = inode_to_bdi(mapping->host)->ra_pages * 2; in ksmbd_vfs_set_fadvise()
|
/linux-6.6.21/fs/ceph/ |
D | addr.c | 191 unsigned long max_pages = inode->i_sb->s_bdi->ra_pages; in ceph_netfs_expand_readahead() 453 priv->file_ra_pages = file->f_ra.ra_pages; in ceph_init_request()
|
D | super.c | 1275 sb->s_bdi->ra_pages = fsc->mount_options->rasize >> PAGE_SHIFT; in ceph_setup_bdi()
|
/linux-6.6.21/fs/btrfs/ |
D | disk-io.c | 3339 sb->s_bdi->ra_pages *= btrfs_super_num_devices(disk_super); in open_ctree() 3340 sb->s_bdi->ra_pages = max(sb->s_bdi->ra_pages, SZ_4M / PAGE_SIZE); in open_ctree()
|
/linux-6.6.21/drivers/mtd/ |
D | mtdcore.c | 2489 bdi->ra_pages = 0; in mtd_bdi_init()
|
/linux-6.6.21/fs/ubifs/ |
D | super.c | 2215 sb->s_bdi->ra_pages = 0; in ubifs_fill_super()
|
/linux-6.6.21/fs/f2fs/ |
D | file.c | 4863 filp->f_ra.ra_pages = bdi->ra_pages * in f2fs_file_fadvise()
|