Searched refs:f_ra (Results 1 – 18 of 18) sorted by relevance
/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 | filemap.c | 2394 shrink_readahead_size_eio(&file->f_ra); in filemap_read_folio() 2527 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, folio->index); in filemap_readahead() 2540 struct file_ra_state *ra = &filp->f_ra; in filemap_get_pages() 2621 struct file_ra_state *ra = &filp->f_ra; in filemap_read() 2974 in->f_ra.prev_pos = *ppos; in filemap_splice_read() 3151 struct file_ra_state *ra = &file->f_ra; in do_sync_mmap_readahead() 3221 struct file_ra_state *ra = &file->f_ra; in do_async_mmap_readahead() 3621 mmap_miss_saved = READ_ONCE(file->f_ra.mmap_miss); in filemap_map_pages() 3623 WRITE_ONCE(file->f_ra.mmap_miss, 0); in filemap_map_pages() 3625 WRITE_ONCE(file->f_ra.mmap_miss, mmap_miss_saved - mmap_miss); in filemap_map_pages()
|
D | internal.h | 129 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, index); in force_page_cache_readahead()
|
D | khugepaged.c | 1876 page_cache_sync_readahead(mapping, &file->f_ra, in collapse_file()
|
D | shmem.c | 3009 in->f_ra.prev_pos = *ppos; in shmem_file_splice_read()
|
/linux-6.6.21/fs/gfs2/ |
D | export.c | 97 struct file_ra_state f_ra = { .start = 0 }; in gfs2_get_name() local 116 error = gfs2_dir_read(dir, &gnfd.ctx, &f_ra); in gfs2_get_name()
|
D | dir.c | 1480 struct file_ra_state *f_ra) in gfs2_dir_readahead() argument 1489 if (index + MAX_RA_BLOCKS < f_ra->start) in gfs2_dir_readahead() 1492 f_ra->start = max((pgoff_t)index, f_ra->start); in gfs2_dir_readahead() 1494 if (f_ra->start >= hsize) /* if exceeded the hash table */ in gfs2_dir_readahead() 1498 blocknr = be64_to_cpu(ip->i_hash_cache[f_ra->start]); in gfs2_dir_readahead() 1499 f_ra->start++; in gfs2_dir_readahead() 1529 struct file_ra_state *f_ra) in dir_e_read() argument 1544 f_ra->start = 0; in dir_e_read() 1549 gfs2_dir_readahead(inode, hsize, index, f_ra); in dir_e_read() 1568 struct file_ra_state *f_ra) in gfs2_dir_read() argument [all …]
|
D | dir.h | 40 struct file_ra_state *f_ra);
|
D | file.c | 116 error = gfs2_dir_read(dir, ctx, &file->f_ra); in gfs2_readdir()
|
/linux-6.6.21/fs/ext4/ |
D | dir.c | 193 if (!ra_has_index(&file->f_ra, index)) in ext4_readdir() 196 &file->f_ra, file, in ext4_readdir() 198 file->f_ra.prev_pos = (loff_t)index << PAGE_SHIFT; in ext4_readdir()
|
/linux-6.6.21/fs/nfs/ |
D | nfs4file.c | 390 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
|
/linux-6.6.21/fs/f2fs/ |
D | dir.c | 1063 struct file_ra_state *ra = &file->f_ra; in f2fs_readdir()
|
D | file.c | 4863 filp->f_ra.ra_pages = bdi->ra_pages * in f2fs_file_fadvise()
|
/linux-6.6.21/fs/ |
D | open.c | 948 file_ra_state_init(&f->f_ra, f->f_mapping->host->i_mapping); in do_dentry_open()
|
/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 | 453 priv->file_ra_pages = file->f_ra.ra_pages; in ceph_init_request()
|
/linux-6.6.21/include/linux/ |
D | fs.h | 1013 struct file_ra_state f_ra; member
|
/linux-6.6.21/fs/btrfs/ |
D | ioctl.c | 2627 ret = btrfs_defrag_file(file_inode(file), &file->f_ra, in btrfs_ioctl_defrag()
|