Home
last modified time | relevance | path

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

123456

/Linux-v5.4/fs/nfs/
Dfile.c125 struct inode *inode = filp->f_mapping->host; in nfs_file_llseek()
168 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read()
193 status = nfs_revalidate_mapping(inode, file->f_mapping); in nfs_file_mmap()
305 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()
501 struct rpc_clnt *clnt = NFS_CLIENT(file->f_mapping->host); in nfs_swap_deactivate()
542 filp, filp->f_mapping->host->i_ino, in nfs_vm_page_mkwrite()
621 nfs_revalidate_mapping(inode, file->f_mapping); in nfs_file_write()
659 struct inode *inode = filp->f_mapping->host; in do_getlk()
688 struct inode *inode = filp->f_mapping->host; in do_unlk()
[all …]
/Linux-v5.4/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()
153 struct super_block *sb = file->f_mapping->host->i_sb; in ext2_fsync()
166 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_read_iter()
175 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_write_iter()
/Linux-v5.4/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.4/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c74 mapping = obj->base.filp->f_mapping; in shmem_get_pages()
249 mapping = obj->base.filp->f_mapping; in shmem_writeback()
332 struct address_space *mapping = obj->base.filp->f_mapping; in shmem_pwrite()
493 mapping = obj->base.filp->f_mapping; in i915_gem_object_create_shmem()
553 err = pagecache_write_begin(file, file->f_mapping, in i915_gem_object_create_shmem_from_data()
563 err = pagecache_write_end(file, file->f_mapping, in i915_gem_object_create_shmem_from_data()
Di915_gem_phys.c23 struct address_space *mapping = obj->base.filp->f_mapping; in i915_gem_object_get_pages_phys()
104 struct address_space *mapping = obj->base.filp->f_mapping; in i915_gem_object_put_pages_phys()
/Linux-v5.4/fs/efivarfs/
Dfile.c21 struct inode *inode = file->f_mapping->host; in efivarfs_file_write()
124 struct inode *inode = file->f_mapping->host; in efivarfs_ioc_getxflags()
135 struct inode *inode = file->f_mapping->host; in efivarfs_ioc_setxflags()
/Linux-v5.4/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.c150 struct address_space *mapping = swap_file->f_mapping; in generic_swapfile_activate()
288 struct address_space *mapping = swap_file->f_mapping; in __swap_writepage()
369 struct address_space *mapping = swap_file->f_mapping; in swap_readpage()
429 struct address_space *mapping = sis->swap_file->f_mapping; in swap_set_page_dirty()
Dfilemap.c598 struct address_space *mapping = file->f_mapping; in file_fdatawait_range()
736 struct address_space *mapping = file->f_mapping; in file_check_and_advance_wb_err()
779 struct address_space *mapping = file->f_mapping; in file_write_and_wait_range()
2013 struct address_space *mapping = filp->f_mapping; in generic_file_buffered_read()
2284 struct address_space *mapping = file->f_mapping; in generic_file_read_iter()
2408 struct address_space *mapping = file->f_mapping; in do_sync_mmap_readahead()
2457 struct address_space *mapping = file->f_mapping; in do_async_mmap_readahead()
2502 struct address_space *mapping = file->f_mapping; in filemap_fault()
2627 struct address_space *mapping = file->f_mapping; in filemap_map_pages()
2728 struct address_space *mapping = file->f_mapping; in generic_file_mmap()
[all …]
Dmmap.c167 struct address_space *mapping = file->f_mapping; in unlink_file_vma()
626 struct address_space *mapping = file->f_mapping; in __vma_link_file()
655 mapping = vma->vm_file->f_mapping; in vma_link()
827 mapping = file->f_mapping; in __vma_adjust()
1501 if (IS_SWAPFILE(file->f_mapping->host)) in do_mmap()
1701 return vma->vm_file && vma->vm_file->f_mapping && in vma_wants_writenotify()
1702 mapping_cap_account_dirty(vma->vm_file->f_mapping); in vma_wants_writenotify()
1795 error = mapping_map_writable(file->f_mapping); in mmap_region()
1833 mapping_unmap_writable(file->f_mapping); in mmap_region()
1875 mapping_unmap_writable(file->f_mapping); in mmap_region()
[all …]
/Linux-v5.4/fs/
Dfile_table.c199 file->f_mapping = path->dentry->d_inode->i_mapping; in alloc_file()
200 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.c191 struct inode *inode = file->f_mapping->host; in vfs_fsync_range()
286 mapping = file->f_mapping; in sync_file_range()
Danon_inodes.c96 file->f_mapping = anon_inode_inode->i_mapping; in anon_inode_getfile()
/Linux-v5.4/fs/ocfs2/
Dlocks.c101 struct inode *inode = file->f_mapping->host; in ocfs2_flock()
121 struct inode *inode = file->f_mapping->host; in ocfs2_lock()
/Linux-v5.4/fs/gfs2/
Dfile.c57 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_llseek()
104 struct inode *dir = file->f_mapping->host; in gfs2_readdir()
547 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_mmap()
685 struct address_space *mapping = file->f_mapping; in gfs2_fsync()
722 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_file_direct_read()
746 struct inode *inode = file->f_mapping->host; in gfs2_file_direct_write()
843 struct address_space *mapping = file->f_mapping; in gfs2_file_write_iter()
1073 if ((file->f_flags & O_DSYNC) || IS_SYNC(file->f_mapping->host)) in __gfs2_fallocate()
1145 struct gfs2_inode *ip = GFS2_I(out->f_mapping->host); in gfs2_file_splice_write()
1169 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_lock()
[all …]
/Linux-v5.4/fs/xfs/
Dxfs_file.c82 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync()
105 struct inode *inode = file->f_mapping->host; in xfs_file_fsync()
202 struct xfs_inode *ip = XFS_I(iocb->ki_filp->f_mapping->host); in xfs_file_dax_read()
287 struct inode *inode = file->f_mapping->host; in xfs_file_aio_write_checks()
481 struct address_space *mapping = file->f_mapping; in xfs_file_dio_aio_write()
575 struct inode *inode = iocb->ki_filp->f_mapping->host; in xfs_file_dax_write()
622 struct address_space *mapping = file->f_mapping; in xfs_file_buffered_aio_write()
698 struct address_space *mapping = file->f_mapping; in xfs_file_write_iter()
1107 struct inode *inode = file->f_mapping->host; in xfs_file_llseek()
/Linux-v5.4/include/linux/
Dshmem_fs.h108 if (!file || !file->f_mapping) in shmem_file()
110 return shmem_mapping(file->f_mapping); in shmem_file()
/Linux-v5.4/fs/orangefs/
Dfile.c440 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_fault()
574 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_file_llseek()
634 struct inode *inode = file->f_mapping->host; in orangefs_flush()
647 r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX); in orangefs_flush()
/Linux-v5.4/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()
514 page = find_get_page_flags(file->f_mapping, index, in fuse_readdir_cached()
/Linux-v5.4/drivers/video/fbdev/core/
Dfb_defio.c57 page->mapping = vmf->vma->vm_file->f_mapping; in fb_deferred_io_fault()
221 file->f_mapping->a_ops = &fb_deferred_io_aops; in fb_deferred_io_open()
/Linux-v5.4/drivers/block/
Dloop.c149 loopsize = i_size_read(file->f_mapping->host); in get_size()
173 struct address_space *mapping = file->f_mapping; in __loop_update_dio()
641 struct inode *i = file->f_mapping->host; in is_loop_device()
648 struct inode *inode = file->f_mapping->host; in loop_validate_file()
655 if (f->f_mapping->host->i_bdev == bdev) in loop_validate_file()
658 l = f->f_mapping->host->i_bdev->bd_disk->private_data; in loop_validate_file()
715 mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask); in loop_change_fd()
717 lo->old_gfp_mask = mapping_gfp_mask(file->f_mapping); in loop_change_fd()
718 mapping_set_gfp_mask(file->f_mapping, in loop_change_fd()
853 struct inode *inode = file->f_mapping->host; in loop_config_discard()
[all …]
/Linux-v5.4/fs/romfs/
Dmmap-nommu.c24 struct inode *inode = file->f_mapping->host; in romfs_get_unmapped_area()
/Linux-v5.4/drivers/target/
Dtarget_core_file.c134 inode = file->f_mapping->host; in fd_configure_device()
144 dev_size = (i_size_read(file->f_mapping->host) - in fd_configure_device()
547 struct inode *inode = file->f_mapping->host; in fd_execute_unmap()
819 struct inode *i = f->f_mapping->host; in fd_get_blocks()
848 inode = file->f_mapping->host; in fd_init_prot()
/Linux-v5.4/drivers/dax/
Ddevice.c265 page->mapping = filp->f_mapping; in dev_dax_huge_fault()
378 filp->f_mapping = inode->i_mapping; in dax_open()
379 filp->f_wb_err = filemap_sample_wb_err(filp->f_mapping); in dax_open()
/Linux-v5.4/fs/coda/
Dfile.c157 coda_file->f_mapping = host_file->f_mapping; in coda_file_mmap()

123456