Home
last modified time | relevance | path

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

1234567

/linux/fs/nfs/
H A Dfile.c124 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 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()
391 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
/linux/mm/
H A Dmemfd.c94 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 Dfilemap.c603 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 Dvma.c131 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 Dfilemap.h183 __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 Di915_gem_shmem.c209 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 Di915_gem_phys.c23 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 Dbuildid.c69 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 Dfile_table.c178 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 Dremap_range.c35 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 Dsync.c181 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 Dlocks.c100 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 Dfile.c380 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 Dfile.c60 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 Dguest_memfd.c428 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 Dshmem_fs.h174 if (!file || !file->f_mapping)
176 return shmem_mapping(file->f_mapping);
/linux/drivers/block/
H A Dloop.c147 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 Dtarget_core_file.c92 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 Dfile.c621 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 Dbdev.c60 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 Ddevice.c98 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 Dmmap-nommu.c24 struct inode *inode = file->f_mapping->host; in romfs_get_unmapped_area()
/linux/drivers/video/fbdev/core/
H A Dfb_defio.c144 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 Dfile.c21 struct inode *inode = file->f_mapping->host; in efivarfs_file_write()

1234567