/kernel/linux/linux-5.10/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 197 int ra_pages = 0; in TEST() local 252 ra_pages++; in TEST() 255 EXPECT_GT(ra_pages, 0) { in TEST() 294 int ra_pages = 0; in TEST() local 349 ra_pages++; in TEST() 352 ASSERT_EQ(ra_pages, 0) { in TEST()
|
/kernel/linux/linux-5.10/mm/ |
D | fadvise.c | 81 file->f_ra.ra_pages = bdi->ra_pages; in generic_fadvise() 92 file->f_ra.ra_pages = bdi->ra_pages * 2; in generic_fadvise()
|
D | readahead.c | 36 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init() 290 max_pages = max_t(unsigned long, bdi->io_pages, ra->ra_pages); in force_page_cache_ra() 440 unsigned long max_pages = ra->ra_pages; in ondemand_readahead() 563 if (!ra->ra_pages || blk_cgroup_congested()) { in page_cache_sync_ra() 586 if (!ra->ra_pages) in page_cache_async_ra()
|
D | filemap.c | 2170 ra->ra_pages /= 4; in shrink_readahead_size_eio() 2628 if (!ra->ra_pages) in do_sync_mmap_readahead() 2633 page_cache_sync_ra(&ractl, ra, ra->ra_pages); in do_sync_mmap_readahead() 2653 ra->start = max_t(long, 0, vmf->pgoff - ra->ra_pages / 2); in do_sync_mmap_readahead() 2654 ra->size = ra->ra_pages; in do_sync_mmap_readahead() 2655 ra->async_size = ra->ra_pages / 4; in do_sync_mmap_readahead() 2677 if (vmf->vma->vm_flags & VM_RAND_READ || !ra->ra_pages) in do_async_mmap_readahead() 2685 page, offset, ra->ra_pages); in do_async_mmap_readahead()
|
D | backing-dev.c | 144 bdi->ra_pages = read_ahead_kb >> (PAGE_SHIFT - 10); in read_ahead_kb_store() 161 BDI_SHOW(read_ahead_kb, K(bdi->ra_pages)) 747 bdi->ra_pages = VM_READAHEAD_PAGES; in bdi_alloc()
|
/kernel/linux/linux-5.10/fs/fat/ |
D | fatent.c | 657 unsigned long ra_pages = sb->s_bdi->ra_pages; in fat_ra_init() local 663 if (ra_pages > sb->s_bdi->io_pages) in fat_ra_init() 664 ra_pages = rounddown(ra_pages, sb->s_bdi->io_pages); in fat_ra_init() 665 reada_blocks = ra_pages << (PAGE_SHIFT - sb->s_blocksize_bits + 1); in fat_ra_init()
|
/kernel/linux/linux-5.10/block/ |
D | ioctl.c | 558 bdev->bd_bdi->ra_pages = (arg * 512) / PAGE_SIZE; in blkdev_common_ioctl() 608 return put_long(argp, (bdev->bd_bdi->ra_pages*PAGE_SIZE) / 512); in blkdev_ioctl() 679 (bdev->bd_bdi->ra_pages * PAGE_SIZE) / 512); in compat_blkdev_ioctl()
|
D | blk-settings.c | 381 q->backing_dev_info->ra_pages = in blk_queue_update_readahead() 466 q->backing_dev_info->ra_pages = in blk_queue_io_opt()
|
D | blk-sysfs.c | 91 unsigned long ra_kb = q->backing_dev_info->ra_pages << in queue_ra_show() 106 q->backing_dev_info->ra_pages = ra_kb >> (PAGE_SHIFT - 10); in queue_ra_store()
|
/kernel/linux/linux-5.10/include/linux/ |
D | backing-dev-defs.h | 169 unsigned long ra_pages; /* max readahead in PAGE_SIZE units */ member
|
D | fs.h | 903 unsigned int ra_pages; /* Maximum readahead window */ member
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | super.c | 160 sb->s_bdi->ra_pages = value; in hmdfs_parse_options()
|
D | file_remote.c | 484 ra->ra_pages = 256; in hmdfs_file_read_iter_remote() 487 ra->ra_pages = 512; in hmdfs_file_read_iter_remote() 490 ra->ra_pages = 1024; in hmdfs_file_read_iter_remote()
|
D | main.c | 394 seq_printf(m, ",ra_pages=%lu", root->d_sb->s_bdi->ra_pages); in hmdfs_show_options()
|
/kernel/linux/linux-5.10/fs/fuse/ |
D | inode.c | 995 unsigned long ra_pages; in process_init_reply() local 1000 ra_pages = arg->max_readahead / PAGE_SIZE; in process_init_reply() 1062 ra_pages = fc->max_read / PAGE_SIZE; in process_init_reply() 1067 fm->sb->s_bdi->ra_pages = in process_init_reply() 1068 min(fm->sb->s_bdi->ra_pages, ra_pages); in process_init_reply() 1093 ia->in.max_readahead = fm->sb->s_bdi->ra_pages * PAGE_SIZE; in fuse_send_init()
|
/kernel/linux/linux-5.10/fs/9p/ |
D | vfs_super.c | 84 sb->s_bdi->ra_pages = 0; in v9fs_fill_super()
|
/kernel/linux/linux-5.10/fs/vboxsf/ |
D | super.c | 167 sb->s_bdi->ra_pages = 0; in vboxsf_fill_super()
|
/kernel/linux/linux-5.10/fs/squashfs/ |
D | super.c | 81 sb->s_bdi->ra_pages = 0; in squashfs_bdi_init()
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | super.c | 1047 sb->s_bdi->ra_pages = fsc->mount_options->rasize >> PAGE_SHIFT; in ceph_setup_bdi()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | disk-io.c | 3113 sb->s_bdi->ra_pages *= btrfs_super_num_devices(disk_super); in open_ctree() 3114 sb->s_bdi->ra_pages = max(sb->s_bdi->ra_pages, SZ_4M / PAGE_SIZE); in open_ctree()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | cifsfs.c | 217 sb->s_bdi->ra_pages = cifs_sb->rsize / PAGE_SIZE; in cifs_read_super()
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtdcore.c | 2221 bdi->ra_pages = 0; in mtd_bdi_init()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
D | super.c | 2201 sb->s_bdi->ra_pages = 0; in ubifs_fill_super()
|