Home
last modified time | relevance | path

Searched refs:ra_pages (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/mincore/
Dmincore_selftest.c197 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/
Dfadvise.c81 file->f_ra.ra_pages = bdi->ra_pages; in generic_fadvise()
92 file->f_ra.ra_pages = bdi->ra_pages * 2; in generic_fadvise()
Dreadahead.c36 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()
Dfilemap.c2170 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()
Dbacking-dev.c144 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/
Dfatent.c657 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/
Dioctl.c558 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()
Dblk-settings.c381 q->backing_dev_info->ra_pages = in blk_queue_update_readahead()
466 q->backing_dev_info->ra_pages = in blk_queue_io_opt()
Dblk-sysfs.c91 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/
Dbacking-dev-defs.h169 unsigned long ra_pages; /* max readahead in PAGE_SIZE units */ member
Dfs.h903 unsigned int ra_pages; /* Maximum readahead window */ member
/kernel/linux/linux-5.10/fs/hmdfs/
Dsuper.c160 sb->s_bdi->ra_pages = value; in hmdfs_parse_options()
Dfile_remote.c484 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()
Dmain.c394 seq_printf(m, ",ra_pages=%lu", root->d_sb->s_bdi->ra_pages); in hmdfs_show_options()
/kernel/linux/linux-5.10/fs/fuse/
Dinode.c995 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/
Dvfs_super.c84 sb->s_bdi->ra_pages = 0; in v9fs_fill_super()
/kernel/linux/linux-5.10/fs/vboxsf/
Dsuper.c167 sb->s_bdi->ra_pages = 0; in vboxsf_fill_super()
/kernel/linux/linux-5.10/fs/squashfs/
Dsuper.c81 sb->s_bdi->ra_pages = 0; in squashfs_bdi_init()
/kernel/linux/linux-5.10/fs/ceph/
Dsuper.c1047 sb->s_bdi->ra_pages = fsc->mount_options->rasize >> PAGE_SHIFT; in ceph_setup_bdi()
/kernel/linux/linux-5.10/fs/btrfs/
Ddisk-io.c3113 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/
Dcifsfs.c217 sb->s_bdi->ra_pages = cifs_sb->rsize / PAGE_SIZE; in cifs_read_super()
/kernel/linux/linux-5.10/drivers/mtd/
Dmtdcore.c2221 bdi->ra_pages = 0; in mtd_bdi_init()
/kernel/linux/linux-5.10/fs/ubifs/
Dsuper.c2201 sb->s_bdi->ra_pages = 0; in ubifs_fill_super()