Home
last modified time | relevance | path

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

1234567

/linux/fs/nfs/
A 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()
493 struct inode *inode = file->f_mapping->host; in nfs_swap_activate()
552 filp, filp->f_mapping->host->i_ino, in nfs_vm_page_mkwrite()
635 nfs_clear_invalid_mapping(file->f_mapping); in nfs_file_write()
690 struct inode *inode = filp->f_mapping->host; in do_getlk()
719 struct inode *inode = filp->f_mapping->host; in do_unlk()
755 struct inode *inode = filp->f_mapping->host; in do_setlk()
762 status = nfs_sync_mapping(filp->f_mapping); in do_setlk()
784 nfs_sync_mapping(filp->f_mapping); in do_setlk()
[all …]
A 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()
385 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
/linux/drivers/gpu/drm/i915/gt/
A 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/fs/ext2/
A 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/include/trace/events/
A 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/fs/verity/
A 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/drivers/gpu/drm/i915/gem/
A Di915_gem_shmem.c76 mapping = obj->base.filp->f_mapping; in shmem_get_pages()
258 mapping = obj->base.filp->f_mapping; in shmem_writeback()
362 struct address_space *mapping = obj->base.filp->f_mapping; in shmem_pwrite()
529 mapping = obj->base.filp->f_mapping; in shmem_object_init()
594 err = pagecache_write_begin(file, file->f_mapping, in i915_gem_object_create_shmem_from_data()
604 err = pagecache_write_end(file, file->f_mapping, in i915_gem_object_create_shmem_from_data()
A 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/fs/
A 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()
A Dsync.c176 struct inode *inode = file->f_mapping->host; in vfs_fsync_range()
271 mapping = file->f_mapping; in sync_file_range()
/linux/mm/
A 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()
A 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()
382 struct address_space *mapping = swap_file->f_mapping; in swap_readpage()
443 struct address_space *mapping = sis->swap_file->f_mapping; in swap_set_page_dirty()
A Dfilemap.c615 struct address_space *mapping = file->f_mapping; in file_fdatawait_range()
778 struct address_space *mapping = file->f_mapping; in file_check_and_advance_wb_err()
821 struct address_space *mapping = file->f_mapping; in file_write_and_wait_range()
2540 struct address_space *mapping = filp->f_mapping; in filemap_get_pages()
2613 struct address_space *mapping = filp->f_mapping; in filemap_read()
2959 struct address_space *mapping = file->f_mapping; in do_sync_mmap_readahead()
3010 struct address_space *mapping = file->f_mapping; in do_async_mmap_readahead()
3057 struct address_space *mapping = file->f_mapping; in filemap_fault()
3296 struct address_space *mapping = file->f_mapping; in filemap_map_pages()
3623 errseq_set(&filp->f_mapping->wb_err, -EIO); in dio_warn_stale_pagecache()
[all …]
A 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()
1843 mapping_unmap_writable(file->f_mapping); in mmap_region()
1882 mapping_unmap_writable(file->f_mapping); in mmap_region()
3593 if (vma->vm_file && vma->vm_file->f_mapping && in mm_take_all_locks()
3595 vm_lock_mapping(mm, vma->vm_file->f_mapping); in mm_take_all_locks()
3673 if (vma->vm_file && vma->vm_file->f_mapping) in mm_drop_all_locks()
[all …]
/linux/fs/ocfs2/
A Dlocks.c99 struct inode *inode = file->f_mapping->host; in ocfs2_flock()
117 struct inode *inode = file->f_mapping->host; in ocfs2_lock()
/linux/fs/gfs2/
A 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()
590 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_mmap()
738 struct address_space *mapping = file->f_mapping; in gfs2_fsync()
806 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_file_direct_read()
871 struct inode *inode = file->f_mapping->host; in gfs2_file_direct_write()
971 ip = GFS2_I(iocb->ki_filp->f_mapping->host); in gfs2_file_read_iter()
1131 struct address_space *mapping = file->f_mapping; in gfs2_file_write_iter()
1350 if ((file->f_flags & O_DSYNC) || IS_SYNC(file->f_mapping->host)) in __gfs2_fallocate()
1436 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_lock()
[all …]
/linux/fs/overlayfs/
A Dfile.c86 if (!file->f_mapping->a_ops || in ovl_change_flags()
87 !file->f_mapping->a_ops->direct_IO) in ovl_change_flags()
309 (!real.file->f_mapping->a_ops || in ovl_read_iter()
310 !real.file->f_mapping->a_ops->direct_IO)) in ovl_read_iter()
370 (!real.file->f_mapping->a_ops || in ovl_write_iter()
371 !real.file->f_mapping->a_ops->direct_IO)) in ovl_write_iter()
/linux/include/linux/
A Dshmem_fs.h122 if (!file || !file->f_mapping) in shmem_file()
124 return shmem_mapping(file->f_mapping); in shmem_file()
/linux/fs/fuse/
A 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/fs/xfs/
A 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/drivers/block/
A Dloop.c141 loopsize = i_size_read(file->f_mapping->host); in get_size()
165 struct address_space *mapping = file->f_mapping; in __loop_update_dio()
526 struct inode *i = file->f_mapping->host; in is_loop_device()
533 struct inode *inode = file->f_mapping->host; in loop_validate_file()
541 if (f->f_mapping->host->i_rdev == bdev->bd_dev) in loop_validate_file()
605 lo->old_gfp_mask = mapping_gfp_mask(file->f_mapping); in loop_change_fd()
606 mapping_set_gfp_mask(file->f_mapping, in loop_change_fd()
750 struct inode *inode = file->f_mapping->host; in loop_config_discard()
894 struct inode *file_inode = file->f_mapping->host; in loop_update_rotational()
987 mapping = file->f_mapping; in loop_configure()
[all …]
/linux/drivers/video/fbdev/core/
A 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/fs/orangefs/
A 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/fs/ext4/
A Dfile.c601 err = filemap_write_and_wait_range(iocb->ki_filp->f_mapping, in ext4_dio_write_iter()
604 invalidate_mapping_pages(iocb->ki_filp->f_mapping, in ext4_dio_write_iter()
708 struct address_space *mapping = vmf->vma->vm_file->f_mapping; in ext4_dax_huge_fault()
768 struct inode *inode = file->f_mapping->host; in ext4_file_mmap()
884 struct inode *inode = file->f_mapping->host; in ext4_llseek()
/linux/drivers/gpu/drm/lima/
A 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()

Completed in 59 milliseconds

1234567