/linux/fs/nfs/ |
H A D | file.c | 124 struct inode *inode = filp->f_mapping->host; in nfs_file_llseek() 151 since = filemap_sample_wb_err(file->f_mapping); in nfs_file_flush() 153 return filemap_check_wb_err(file->f_mapping, since); in nfs_file_flush() 173 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read() 197 result = nfs_revalidate_mapping(inode, in->f_mapping); in nfs_file_splice_read() 222 status = nfs_revalidate_mapping(inode, file->f_mapping); in nfs_file_mmap() 598 filp, filp->f_mapping->host->i_ino, in nfs_vm_page_mkwrite() 674 nfs_clear_invalid_mapping(file->f_mapping); in nfs_file_write() 676 since = filemap_sample_wb_err(file->f_mapping); in nfs_file_write() 691 result = filemap_fdatawrite_range(file->f_mapping, in nfs_file_write() [all …]
|
H A D | nfs4file.c | 127 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() 391 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
|
/linux/mm/ |
H A D | memfd.c | 94 memfd->f_mapping, in memfd_alloc_folio() 106 return shmem_read_folio(memfd->f_mapping, idx); in memfd_alloc_folio() 250 error = mapping_deny_writable(file->f_mapping); in memfd_add_seals() 254 error = memfd_wait_for_pins(file->f_mapping); in memfd_add_seals() 256 mapping_allow_writable(file->f_mapping); in memfd_add_seals()
|
H A D | filemap.c | 603 struct address_space *mapping = file->f_mapping; in file_fdatawait_range() 738 struct address_space *mapping = file->f_mapping; in file_check_and_advance_wb_err() 781 struct address_space *mapping = file->f_mapping; in file_write_and_wait_range() 2526 struct address_space *mapping = filp->f_mapping; in filemap_get_pages() 2614 struct address_space *mapping = filp->f_mapping; in filemap_read() 2722 struct address_space *mapping = iocb->ki_filp->f_mapping; in kiocb_write_and_wait() 2763 struct address_space *mapping = iocb->ki_filp->f_mapping; in kiocb_invalidate_pages() 2803 struct address_space *mapping = file->f_mapping; in generic_file_read_iter() 2902 if (unlikely(*ppos >= in->f_mapping->host->i_sb->s_maxbytes)) in filemap_splice_read() 2918 if (*ppos >= i_size_read(in->f_mapping->host)) in filemap_splice_read() [all …]
|
H A D | vma.c | 131 vp->mapping = vma->vm_file->f_mapping; in init_multi_vma_prep() 227 vp->insert->vm_file->f_mapping); in vma_prepare() 1622 mapping = vb->vmas[0]->vm_file->f_mapping; in unlink_file_vma_batch_process() 1625 VM_WARN_ON_ONCE(vb->vmas[i]->vm_file->f_mapping != mapping); in unlink_file_vma_batch_process() 1662 struct address_space *mapping = file->f_mapping; in unlink_file_vma() 1676 mapping = file->f_mapping; in vma_link_file() 1905 return vma->vm_file && vma->vm_file->f_mapping && in vma_fs_can_writeback() 1906 mapping_can_writeback(vma->vm_file->f_mapping); in vma_fs_can_writeback() 2074 if (vma->vm_file && vma->vm_file->f_mapping && in mm_take_all_locks() 2076 vm_lock_mapping(mm, vma->vm_file->f_mapping); in mm_take_all_locks() [all …]
|
/linux/include/trace/events/ |
H A D | filemap.h | 183 __entry->i_ino = file->f_mapping->host->i_ino; 184 if (file->f_mapping->host->i_sb) 186 file->f_mapping->host->i_sb->s_dev; 189 file->f_mapping->host->i_rdev;
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_shmem.c | 209 struct address_space *mapping = obj->base.filp->f_mapping; in shmem_get_pages() 348 __shmem_writeback(obj->base.size, obj->base.filp->f_mapping); in shmem_writeback() 424 struct address_space *mapping = obj->base.filp->f_mapping; in shmem_pwrite() 606 mapping = obj->base.filp->f_mapping; in shmem_object_init() 673 aops = file->f_mapping->a_ops; in i915_gem_object_create_shmem_from_data() 680 err = aops->write_begin(file, file->f_mapping, pos, len, in i915_gem_object_create_shmem_from_data() 687 err = aops->write_end(file, file->f_mapping, pos, len, len, in i915_gem_object_create_shmem_from_data()
|
H A D | i915_gem_phys.c | 23 struct address_space *mapping = obj->base.filp->f_mapping; in i915_gem_object_get_pages_phys() 107 struct address_space *mapping = obj->base.filp->f_mapping; in i915_gem_object_put_pages_phys()
|
/linux/lib/ |
H A D | buildid.c | 69 if (secretmem_mapping(r->file->f_mapping)) in freader_get_folio() 72 r->folio = filemap_get_folio(r->file->f_mapping, file_off >> PAGE_SHIFT); in freader_get_folio() 76 filemap_invalidate_lock_shared(r->file->f_mapping); in freader_get_folio() 77 r->folio = read_cache_folio(r->file->f_mapping, file_off >> PAGE_SHIFT, in freader_get_folio() 79 filemap_invalidate_unlock_shared(r->file->f_mapping); in freader_get_folio()
|
/linux/fs/ |
H A D | file_table.c | 178 f->f_mapping = NULL; in init_file() 315 file->f_mapping = path->dentry->d_inode->i_mapping; in file_init_path() 316 file->f_wb_err = filemap_sample_wb_err(file->f_mapping); in file_init_path() 417 f->f_mapping = base->f_mapping; in alloc_file_clone()
|
H A D | remap_range.c | 35 struct inode *inode_in = file_in->f_mapping->host; in generic_remap_checks() 36 struct inode *inode_out = file_out->f_mapping->host; in generic_remap_checks() 162 return read_mapping_folio(file->f_mapping, pos >> PAGE_SHIFT, file); in vfs_dedupe_get_folio() 229 src_folio->mapping != src->f_mapping || in vfs_dedupe_file_range_compare() 230 dst_folio->mapping != dest->f_mapping) { in vfs_dedupe_file_range_compare()
|
H A D | sync.c | 181 struct inode *inode = file->f_mapping->host; in vfs_fsync_range() 274 mapping = file->f_mapping; in sync_file_range()
|
/linux/fs/ocfs2/ |
H A D | locks.c | 100 struct inode *inode = file->f_mapping->host; in ocfs2_flock() 118 struct inode *inode = file->f_mapping->host; in ocfs2_lock()
|
/linux/fs/orangefs/ |
H A D | file.c | 380 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_fault() 439 if (mapping_nrpages(file->f_mapping)) { in orangefs_file_release() 508 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_file_llseek() 564 r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX); in orangefs_flush()
|
/linux/fs/gfs2/ |
H A D | file.c | 60 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_llseek() 107 struct inode *dir = file->f_mapping->host; in gfs2_readdir() 592 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_mmap() 744 struct address_space *mapping = file->f_mapping; in gfs2_fsync() 814 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_file_direct_read() 877 struct inode *inode = file->f_mapping->host; in gfs2_file_direct_write() 981 ip = GFS2_I(iocb->ki_filp->f_mapping->host); in gfs2_file_read_iter() 1125 struct address_space *mapping = file->f_mapping; in gfs2_file_write_iter() 1354 if ((file->f_flags & O_DSYNC) || IS_SYNC(file->f_mapping->host)) in __gfs2_fallocate() 1440 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_lock() [all …]
|
/linux/virt/kvm/ |
H A D | guest_memfd.c | 428 WARN_ON(file->f_mapping != inode->i_mapping); in __kvm_gmem_create() 549 filemap_invalidate_lock(file->f_mapping); in kvm_gmem_unbind() 553 filemap_invalidate_unlock(file->f_mapping); 654 filemap_invalidate_lock(file->f_mapping); in kvm_gmem_populate() 706 filemap_invalidate_unlock(file->f_mapping);
|
/linux/include/linux/ |
H A D | shmem_fs.h | 174 if (!file || !file->f_mapping) 176 return shmem_mapping(file->f_mapping);
|
/linux/drivers/block/ |
H A D | loop.c | 147 loopsize = i_size_read(file->f_mapping->host); in get_size() 188 struct inode *inode = file->f_mapping->host; in __loop_update_dio() 543 struct inode *i = file->f_mapping->host; in is_loop_device() 550 struct inode *inode = file->f_mapping->host; in loop_validate_file() 558 if (f->f_mapping->host->i_rdev == bdev->bd_dev) in loop_validate_file() 561 l = I_BDEV(f->f_mapping->host)->bd_disk->private_data; in loop_validate_file() 624 mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask); in loop_change_fd() 626 lo->old_gfp_mask = mapping_gfp_mask(file->f_mapping); in loop_change_fd() 627 mapping_set_gfp_mask(file->f_mapping, in loop_change_fd() 777 struct inode *inode = file->f_mapping->host; in loop_get_discard_config() [all …]
|
/linux/drivers/target/ |
H A D | target_core_file.c | 92 struct inode *inode = file->f_mapping->host; in fd_configure_unmap() 153 inode = file->f_mapping->host; in fd_configure_device() 163 dev_size = (i_size_read(file->f_mapping->host) - in fd_configure_device() 536 struct inode *inode = file->f_mapping->host; in fd_execute_unmap() 808 struct inode *i = f->f_mapping->host; in fd_get_blocks() 837 inode = file->f_mapping->host; in fd_init_prot()
|
/linux/fs/ext4/ |
H A D | file.c | 621 err = filemap_write_and_wait_range(iocb->ki_filp->f_mapping, in ext4_dio_write_iter() 624 invalidate_mapping_pages(iocb->ki_filp->f_mapping, in ext4_dio_write_iter() 743 struct address_space *mapping = vmf->vma->vm_file->f_mapping; in ext4_dax_huge_fault() 803 struct inode *inode = file->f_mapping->host; in ext4_file_mmap() 920 struct inode *inode = file->f_mapping->host; in ext4_llseek()
|
/linux/block/ |
H A D | bdev.c | 60 return I_BDEV(bdev_file->f_mapping->host); in file_bdev() 155 struct inode *inode = file->f_mapping->host; in set_blocksize() 846 return bdev_file->private_data == BDEV_I(bdev_file->f_mapping->host); in bdev_unclaimed() 947 bdev_file->f_mapping = bdev->bd_mapping; in bdev_open() 948 bdev_file->f_wb_err = filemap_sample_wb_err(bdev_file->f_mapping); in bdev_open() 1135 bdev_file->private_data = BDEV_I(bdev_file->f_mapping->host); in bdev_fput()
|
/linux/drivers/dax/ |
H A D | device.c | 98 page->mapping = filp->f_mapping; in dax_set_mapping() 356 filp->f_mapping = inode->i_mapping; in dax_open() 357 filp->f_wb_err = filemap_sample_wb_err(filp->f_mapping); in dax_open()
|
/linux/fs/romfs/ |
H A D | mmap-nommu.c | 24 struct inode *inode = file->f_mapping->host; in romfs_get_unmapped_area()
|
/linux/drivers/video/fbdev/core/ |
H A D | fb_defio.c | 144 page->mapping = vmf->vma->vm_file->f_mapping; in fb_deferred_io_fault() 340 file->f_mapping->a_ops = &fb_deferred_io_aops; in fb_deferred_io_open()
|
/linux/fs/efivarfs/ |
H A D | file.c | 21 struct inode *inode = file->f_mapping->host; in efivarfs_file_write()
|