Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/mincore/
Dmincore_selftest.c196 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/
Dfadvise.c80 file->f_ra.ra_pages = bdi->ra_pages; in generic_fadvise()
91 file->f_ra.ra_pages = bdi->ra_pages * 2; in generic_fadvise()
Dreadahead.c141 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()
Dbacking-dev.c145 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()
Dfilemap.c2317 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/
Dfatent.c659 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/
Dvfs_super.c80 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/
Dbacking-dev-defs.h167 unsigned long ra_pages; /* max readahead in PAGE_SIZE units */ member
Dfs.h974 unsigned int ra_pages; member
/linux-6.6.21/block/
Dioctl.c549 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()
Dblk-settings.c399 disk->bdi->ra_pages = in disk_update_readahead()
485 q->disk->bdi->ra_pages = in blk_queue_io_opt()
Dblk-sysfs.c84 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/
Dinode.c1204 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/
Dsuper.c167 sb->s_bdi->ra_pages = 0; in vboxsf_fill_super()
/linux-6.6.21/fs/smb/client/
Dfile.c4488 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()
Dcifsfs.c251 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/
Dvfs.c964 filp->f_ra.ra_pages = inode_to_bdi(mapping->host)->ra_pages * 2; in ksmbd_vfs_set_fadvise()
/linux-6.6.21/fs/ceph/
Daddr.c191 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()
Dsuper.c1275 sb->s_bdi->ra_pages = fsc->mount_options->rasize >> PAGE_SHIFT; in ceph_setup_bdi()
/linux-6.6.21/fs/btrfs/
Ddisk-io.c3339 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/
Dmtdcore.c2489 bdi->ra_pages = 0; in mtd_bdi_init()
/linux-6.6.21/fs/ubifs/
Dsuper.c2215 sb->s_bdi->ra_pages = 0; in ubifs_fill_super()
/linux-6.6.21/fs/f2fs/
Dfile.c4863 filp->f_ra.ra_pages = bdi->ra_pages * in f2fs_file_fadvise()