Searched refs:f_ra (Results 1 – 18 of 18) sorted by relevance
/openbmc/linux/mm/ |
H A 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()
|
H A D | filemap.c | 2420 shrink_readahead_size_eio(&file->f_ra); in filemap_read_folio() 2553 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, folio->index); in filemap_readahead() 2566 struct file_ra_state *ra = &filp->f_ra; in filemap_get_pages() 2647 struct file_ra_state *ra = &filp->f_ra; in filemap_read() 3000 in->f_ra.prev_pos = *ppos; in filemap_splice_read() 3177 struct file_ra_state *ra = &file->f_ra; in do_sync_mmap_readahead() 3247 struct file_ra_state *ra = &file->f_ra; in do_async_mmap_readahead() 3647 mmap_miss_saved = READ_ONCE(file->f_ra.mmap_miss); in filemap_map_pages() 3649 WRITE_ONCE(file->f_ra.mmap_miss, 0); in filemap_map_pages() 3651 WRITE_ONCE(file->f_ra.mmap_miss, mmap_miss_saved - mmap_miss); in filemap_map_pages()
|
H A D | internal.h | 129 DEFINE_READAHEAD(ractl, file, &file->f_ra, mapping, index); in force_page_cache_readahead()
|
H A D | khugepaged.c | 1867 page_cache_sync_readahead(mapping, &file->f_ra, in collapse_file()
|
H A D | shmem.c | 3016 in->f_ra.prev_pos = *ppos; in shmem_file_splice_read()
|
/openbmc/linux/fs/gfs2/ |
H A 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()
|
H A 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 …]
|
H A D | dir.h | 40 struct file_ra_state *f_ra);
|
H A D | file.c | 116 error = gfs2_dir_read(dir, ctx, &file->f_ra); in gfs2_readdir()
|
/openbmc/linux/fs/ext4/ |
H A 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()
|
/openbmc/linux/fs/nfs/ |
H A D | nfs4file.c | 390 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
|
/openbmc/linux/fs/f2fs/ |
H A D | dir.c | 1064 struct file_ra_state *ra = &file->f_ra; in f2fs_readdir()
|
H A D | file.c | 4993 filp->f_ra.ra_pages = bdi->ra_pages * in f2fs_file_fadvise()
|
/openbmc/linux/fs/ |
H A D | open.c | 948 file_ra_state_init(&f->f_ra, f->f_mapping->host->i_mapping); in do_dentry_open()
|
/openbmc/linux/fs/smb/server/ |
H A D | vfs.c | 973 filp->f_ra.ra_pages = inode_to_bdi(mapping->host)->ra_pages * 2; in ksmbd_vfs_set_fadvise()
|
/openbmc/linux/fs/ceph/ |
H A D | addr.c | 452 priv->file_ra_pages = file->f_ra.ra_pages; in ceph_init_request()
|
/openbmc/linux/include/linux/ |
H A D | fs.h | 1013 struct file_ra_state f_ra; member
|
/openbmc/linux/fs/btrfs/ |
H A D | ioctl.c | 2644 ret = btrfs_defrag_file(file_inode(file), &file->f_ra, in btrfs_ioctl_defrag()
|