Home
last modified time | relevance | path

Searched refs:f_mapping (Results 1 – 25 of 161) sorted by relevance

1234567

/Linux-v5.15/fs/nfs/
Dfile.c125 struct inode *inode = filp->f_mapping->host; in nfs_file_llseek()
152 since = filemap_sample_wb_err(file->f_mapping); in nfs_file_flush()
154 return filemap_check_wb_err(file->f_mapping, since); in nfs_file_flush()
171 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read()
196 status = nfs_revalidate_mapping(inode, file->f_mapping); in nfs_file_mmap()
303 if (pnfs_ld_read_whole_page(file->f_mapping->host)) in nfs_want_read_modify_write()
492 struct rpc_clnt *clnt = NFS_CLIENT(file->f_mapping->host); in nfs_swap_activate()
493 struct inode *inode = file->f_mapping->host; in nfs_swap_activate()
511 struct rpc_clnt *clnt = NFS_CLIENT(file->f_mapping->host); in nfs_swap_deactivate()
552 filp, filp->f_mapping->host->i_ino, in nfs_vm_page_mkwrite()
[all …]
Dnfs4file.c127 return filemap_fdatawrite(file->f_mapping); in nfs4_file_flush()
130 since = filemap_sample_wb_err(file->f_mapping); in nfs4_file_flush()
132 return filemap_check_wb_err(file->f_mapping, since); in nfs4_file_flush()
386 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dshmem_utils.c60 n_pages = file->f_mapping->host->i_size >> PAGE_SHIFT; in shmem_pin_map()
66 pages[i] = shmem_read_mapping_page_gfp(file->f_mapping, i, in shmem_pin_map()
75 mapping_set_unevictable(file->f_mapping); in shmem_pin_map()
86 mapping_clear_unevictable(file->f_mapping); in shmem_unpin_map()
102 page = shmem_read_mapping_page_gfp(file->f_mapping, pfn, in __shmem_rw()
/Linux-v5.15/fs/ext2/
Dfile.c35 struct inode *inode = iocb->ki_filp->f_mapping->host; in ext2_dax_read_iter()
52 struct inode *inode = file->f_mapping->host; in ext2_dax_write_iter()
154 struct super_block *sb = file->f_mapping->host->i_sb; in ext2_fsync()
167 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_read_iter()
176 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_write_iter()
/Linux-v5.15/include/trace/events/
Dfilemap.h97 __entry->i_ino = file->f_mapping->host->i_ino;
98 if (file->f_mapping->host->i_sb)
100 file->f_mapping->host->i_sb->s_dev;
103 file->f_mapping->host->i_rdev;
/Linux-v5.15/fs/verity/
Denable.c27 page = find_get_page_flags(filp->f_mapping, index, FGP_ACCESSED); in read_file_data_page()
32 page_cache_sync_readahead(filp->f_mapping, ra, filp, in read_file_data_page()
34 page = read_mapping_page(filp->f_mapping, index, NULL); in read_file_data_page()
39 page_cache_async_readahead(filp->f_mapping, ra, filp, page, in read_file_data_page()
69 file_ra_state_init(&ra, filp->f_mapping); in build_merkle_tree_level()
/Linux-v5.15/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c76 mapping = obj->base.filp->f_mapping; in shmem_get_pages()
273 mapping = obj->base.filp->f_mapping; in shmem_writeback()
365 struct address_space *mapping = obj->base.filp->f_mapping; in shmem_pwrite()
532 mapping = obj->base.filp->f_mapping; in shmem_object_init()
597 err = pagecache_write_begin(file, file->f_mapping, in i915_gem_object_create_shmem_from_data()
607 err = pagecache_write_end(file, file->f_mapping, in i915_gem_object_create_shmem_from_data()
Di915_gem_phys.c21 struct address_space *mapping = obj->base.filp->f_mapping; in i915_gem_object_get_pages_phys()
103 struct address_space *mapping = obj->base.filp->f_mapping; in i915_gem_object_put_pages_phys()
/Linux-v5.15/mm/
Dmemfd.c195 error = mapping_deny_writable(file->f_mapping); in memfd_add_seals()
199 error = memfd_wait_for_pins(file->f_mapping); in memfd_add_seals()
201 mapping_allow_writable(file->f_mapping); in memfd_add_seals()
Dpage_io.c131 struct address_space *mapping = swap_file->f_mapping; in generic_swapfile_activate()
296 struct address_space *mapping = swap_file->f_mapping; in __swap_writepage()
384 struct address_space *mapping = swap_file->f_mapping; in swap_readpage()
447 struct address_space *mapping = sis->swap_file->f_mapping; in swap_set_page_dirty()
Dfilemap.c608 struct address_space *mapping = file->f_mapping; in file_fdatawait_range()
764 struct address_space *mapping = file->f_mapping; in file_check_and_advance_wb_err()
807 struct address_space *mapping = file->f_mapping; in file_write_and_wait_range()
2529 struct address_space *mapping = filp->f_mapping; in filemap_get_pages()
2602 struct address_space *mapping = filp->f_mapping; in filemap_read()
2738 struct address_space *mapping = file->f_mapping; in generic_file_read_iter()
2944 struct address_space *mapping = file->f_mapping; in do_sync_mmap_readahead()
2995 struct address_space *mapping = file->f_mapping; in do_async_mmap_readahead()
3042 struct address_space *mapping = file->f_mapping; in filemap_fault()
3290 struct address_space *mapping = file->f_mapping; in filemap_map_pages()
[all …]
Dmmap.c168 struct address_space *mapping = file->f_mapping; in unlink_file_vma()
666 struct address_space *mapping = file->f_mapping; in __vma_link_file()
693 mapping = vma->vm_file->f_mapping; in vma_link()
840 mapping = file->f_mapping; in __vma_adjust()
1506 if (IS_SWAPFILE(file->f_mapping->host)) in do_mmap()
1696 return vma->vm_file && vma->vm_file->f_mapping && in vma_wants_writenotify()
1697 mapping_can_writeback(vma->vm_file->f_mapping); in vma_wants_writenotify()
1781 error = mapping_map_writable(file->f_mapping); in mmap_region()
1844 mapping_unmap_writable(file->f_mapping); in mmap_region()
1883 mapping_unmap_writable(file->f_mapping); in mmap_region()
[all …]
/Linux-v5.15/fs/
Dfile_table.c198 file->f_mapping = path->dentry->d_inode->i_mapping; in alloc_file()
199 file->f_wb_err = filemap_sample_wb_err(file->f_mapping); in alloc_file()
247 f->f_mapping = base->f_mapping; in alloc_file_clone()
Dsync.c194 struct inode *inode = file->f_mapping->host; in vfs_fsync_range()
289 mapping = file->f_mapping; in sync_file_range()
/Linux-v5.15/fs/ocfs2/
Dlocks.c99 struct inode *inode = file->f_mapping->host; in ocfs2_flock()
117 struct inode *inode = file->f_mapping->host; in ocfs2_lock()
/Linux-v5.15/fs/gfs2/
Dfile.c59 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_llseek()
106 struct inode *dir = file->f_mapping->host; in gfs2_readdir()
597 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_mmap()
745 struct address_space *mapping = file->f_mapping; in gfs2_fsync()
783 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_file_direct_read()
806 struct inode *inode = file->f_mapping->host; in gfs2_file_direct_write()
865 ip = GFS2_I(iocb->ki_filp->f_mapping->host); in gfs2_file_read_iter()
922 struct address_space *mapping = file->f_mapping; in gfs2_file_write_iter()
1148 if ((file->f_flags & O_DSYNC) || IS_SYNC(file->f_mapping->host)) in __gfs2_fallocate()
1234 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_lock()
[all …]
/Linux-v5.15/include/linux/
Dshmem_fs.h122 if (!file || !file->f_mapping) in shmem_file()
124 return shmem_mapping(file->f_mapping); in shmem_file()
/Linux-v5.15/fs/overlayfs/
Dfile.c85 if (!file->f_mapping->a_ops || in ovl_change_flags()
86 !file->f_mapping->a_ops->direct_IO) in ovl_change_flags()
301 (!real.file->f_mapping->a_ops || in ovl_read_iter()
302 !real.file->f_mapping->a_ops->direct_IO)) in ovl_read_iter()
360 (!real.file->f_mapping->a_ops || in ovl_write_iter()
361 !real.file->f_mapping->a_ops->direct_IO)) in ovl_write_iter()
/Linux-v5.15/fs/fuse/
Dreaddir.c65 page = find_lock_page(file->f_mapping, index); in fuse_add_dirent_to_cache()
67 page = find_or_create_page(file->f_mapping, index, in fuse_add_dirent_to_cache()
68 mapping_gfp_mask(file->f_mapping)); in fuse_add_dirent_to_cache()
109 truncate_inode_pages(file->f_mapping, end); in fuse_readdir_cache_end()
517 page = find_get_page_flags(file->f_mapping, index, in fuse_readdir_cached()
/Linux-v5.15/drivers/video/fbdev/core/
Dfb_defio.c57 page->mapping = vmf->vma->vm_file->f_mapping; in fb_deferred_io_fault()
219 file->f_mapping->a_ops = &fb_deferred_io_aops; in fb_deferred_io_open()
/Linux-v5.15/fs/xfs/
Dxfs_file.c116 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync()
177 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_file_fsync()
273 struct xfs_inode *ip = XFS_I(iocb->ki_filp->f_mapping->host); in xfs_file_dax_read()
350 struct inode *inode = file->f_mapping->host; in xfs_file_write_checks()
691 struct inode *inode = iocb->ki_filp->f_mapping->host; in xfs_file_dax_write()
733 struct address_space *mapping = file->f_mapping; in xfs_file_buffered_write()
806 struct address_space *mapping = file->f_mapping; in xfs_file_write_iter()
1278 struct inode *inode = file->f_mapping->host; in xfs_file_llseek()
/Linux-v5.15/fs/orangefs/
Dfile.c360 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_fault()
491 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_file_llseek()
547 r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX); in orangefs_flush()
/Linux-v5.15/fs/ext4/
Dfile.c600 err = filemap_write_and_wait_range(iocb->ki_filp->f_mapping, in ext4_dio_write_iter()
603 invalidate_mapping_pages(iocb->ki_filp->f_mapping, in ext4_dio_write_iter()
707 struct address_space *mapping = vmf->vma->vm_file->f_mapping; in ext4_dax_huge_fault()
767 struct inode *inode = file->f_mapping->host; in ext4_file_mmap()
883 struct inode *inode = file->f_mapping->host; in ext4_llseek()
/Linux-v5.15/drivers/gpu/drm/lima/
Dlima_gem.c23 struct address_space *mapping = bo->base.base.filp->f_mapping; in lima_heap_alloc()
119 mask = mapping_gfp_mask(obj->filp->f_mapping); in lima_gem_create_handle()
122 mapping_set_gfp_mask(obj->filp->f_mapping, mask); in lima_gem_create_handle()
/Linux-v5.15/block/
Dfops.c22 return file->f_mapping->host; in bdev_file_inode()
146 struct block_device *bdev = I_BDEV(kiocb->ki_filp->f_mapping->host); in blkdev_iopoll()
451 filp->f_mapping = bdev->bd_inode->i_mapping; in blkdev_open()
452 filp->f_wb_err = filemap_sample_wb_err(filp->f_mapping); in blkdev_open()

1234567