Home
last modified time | relevance | path

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

12345678

/linux-6.12.1/fs/nfs/
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()
170 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read()
191 result = nfs_revalidate_mapping(inode, in->f_mapping); in nfs_file_splice_read()
216 status = nfs_revalidate_mapping(inode, file->f_mapping); in nfs_file_mmap()
592 filp, filp->f_mapping->host->i_ino, in nfs_vm_page_mkwrite()
668 nfs_clear_invalid_mapping(file->f_mapping); in nfs_file_write()
670 since = filemap_sample_wb_err(file->f_mapping); in nfs_file_write()
683 result = filemap_fdatawrite_range(file->f_mapping, in nfs_file_write()
[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()
391 file_ra_state_init(&filep->f_ra, filep->f_mapping->host->i_mapping); in __nfs42_ssc_open()
/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dshmem_utils.c64 n_pages = file->f_mapping->host->i_size >> PAGE_SHIFT; in shmem_pin_map()
70 pages[i] = shmem_read_mapping_page_gfp(file->f_mapping, i, in shmem_pin_map()
79 mapping_set_unevictable(file->f_mapping); in shmem_pin_map()
90 mapping_clear_unevictable(file->f_mapping); in shmem_unpin_map()
106 page = shmem_read_mapping_page_gfp(file->f_mapping, pfn, in __shmem_rw()
141 page = shmem_read_mapping_page_gfp(file->f_mapping, pfn, in shmem_read_to_iosys_map()
/linux-6.12.1/fs/ext2/
Dfile.c37 struct inode *inode = iocb->ki_filp->f_mapping->host; in ext2_dax_read_iter()
54 struct inode *inode = file->f_mapping->host; in ext2_dax_write_iter()
156 struct super_block *sb = file->f_mapping->host->i_sb; in ext2_fsync()
169 struct inode *inode = file->f_mapping->host; in ext2_dio_read_iter()
215 struct inode *inode = file->f_mapping->host; in ext2_dio_write_iter()
284 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_read_iter()
296 if (IS_DAX(iocb->ki_filp->f_mapping->host)) in ext2_file_write_iter()
/linux-6.12.1/mm/
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()
Dvma.c80 vp->mapping = vma->vm_file->f_mapping; in init_multi_vma_prep()
176 vp->insert->vm_file->f_mapping); in vma_prepare()
1531 mapping = vb->vmas[0]->vm_file->f_mapping; in unlink_file_vma_batch_process()
1534 VM_WARN_ON_ONCE(vb->vmas[i]->vm_file->f_mapping != mapping); in unlink_file_vma_batch_process()
1571 struct address_space *mapping = file->f_mapping; in unlink_file_vma()
1585 mapping = file->f_mapping; in vma_link_file()
1814 return vma->vm_file && vma->vm_file->f_mapping && in vma_fs_can_writeback()
1815 mapping_can_writeback(vma->vm_file->f_mapping); in vma_fs_can_writeback()
1983 if (vma->vm_file && vma->vm_file->f_mapping && in mm_take_all_locks()
1985 vm_lock_mapping(mm, vma->vm_file->f_mapping); in mm_take_all_locks()
[all …]
Dfilemap.c604 struct address_space *mapping = file->f_mapping; in file_fdatawait_range()
739 struct address_space *mapping = file->f_mapping; in file_check_and_advance_wb_err()
782 struct address_space *mapping = file->f_mapping; in file_write_and_wait_range()
2527 struct address_space *mapping = filp->f_mapping; in filemap_get_pages()
2615 struct address_space *mapping = filp->f_mapping; in filemap_read()
2721 struct address_space *mapping = iocb->ki_filp->f_mapping; in kiocb_write_and_wait()
2762 struct address_space *mapping = iocb->ki_filp->f_mapping; in kiocb_invalidate_pages()
2802 struct address_space *mapping = file->f_mapping; in generic_file_read_iter()
2901 if (unlikely(*ppos >= in->f_mapping->host->i_sb->s_maxbytes)) in filemap_splice_read()
2917 if (*ppos >= i_size_read(in->f_mapping->host)) in filemap_splice_read()
[all …]
/linux-6.12.1/include/trace/events/
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-6.12.1/drivers/gpu/drm/i915/gem/
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()
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-6.12.1/lib/
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-6.12.1/fs/ocfs2/
Dlocks.c100 struct inode *inode = file->f_mapping->host; in ocfs2_flock()
118 struct inode *inode = file->f_mapping->host; in ocfs2_lock()
/linux-6.12.1/fs/
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()
Dfile_table.c296 file->f_mapping = path->dentry->d_inode->i_mapping; in file_init_path()
297 file->f_wb_err = filemap_sample_wb_err(file->f_mapping); in file_init_path()
398 f->f_mapping = base->f_mapping; in alloc_file_clone()
/linux-6.12.1/fs/orangefs/
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-6.12.1/drivers/mtd/devices/
Dblock2mtd.c58 struct address_space *mapping = dev->bdev_file->f_mapping; in _block2mtd_erase()
108 struct address_space *mapping = dev->bdev_file->f_mapping; in block2mtd_read()
143 struct address_space *mapping = dev->bdev_file->f_mapping; in _block2mtd_write()
211 invalidate_mapping_pages(dev->bdev_file->f_mapping, 0, -1); in block2mtd_free_device()
/linux-6.12.1/fs/gfs2/
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-6.12.1/fs/xfs/
Dxfs_file.c70 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_dir_fsync()
131 struct xfs_inode *ip = XFS_I(file->f_mapping->host); in xfs_file_fsync()
259 struct xfs_inode *ip = XFS_I(iocb->ki_filp->f_mapping->host); in xfs_file_dax_read()
365 struct xfs_inode *ip = XFS_I(iocb->ki_filp->f_mapping->host); in xfs_file_write_zero_eof()
436 struct inode *inode = iocb->ki_filp->f_mapping->host; in xfs_file_write_checks()
734 struct inode *inode = iocb->ki_filp->f_mapping->host; in xfs_file_dax_write()
775 struct inode *inode = iocb->ki_filp->f_mapping->host; in xfs_file_buffered_write()
839 struct inode *inode = iocb->ki_filp->f_mapping->host; in xfs_file_write_iter()
1377 struct inode *inode = file->f_mapping->host; in xfs_file_llseek()
/linux-6.12.1/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()
111 truncate_inode_pages(file->f_mapping, end); in fuse_readdir_cache_end()
529 page = find_get_page_flags(file->f_mapping, index, in fuse_readdir_cached()
/linux-6.12.1/virt/kvm/
Dguest_memfd.c423 WARN_ON(file->f_mapping != inode->i_mapping); in __kvm_gmem_create()
544 filemap_invalidate_lock(file->f_mapping); in kvm_gmem_unbind()
548 filemap_invalidate_unlock(file->f_mapping); in kvm_gmem_unbind()
645 filemap_invalidate_lock(file->f_mapping); in kvm_gmem_populate()
696 filemap_invalidate_unlock(file->f_mapping); in kvm_gmem_populate()
/linux-6.12.1/fs/netfs/
Ddirect_write.c50 wreq = netfs_create_write_req(iocb->ki_filp->f_mapping, iocb->ki_filp, start, in netfs_unbuffered_write_iter_locked()
139 struct address_space *mapping = file->f_mapping; in netfs_unbuffered_write_iter()
/linux-6.12.1/include/linux/
Dshmem_fs.h168 if (!file || !file->f_mapping) in shmem_file()
170 return shmem_mapping(file->f_mapping); in shmem_file()
/linux-6.12.1/drivers/block/
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_config_discard()
[all …]
/linux-6.12.1/drivers/target/
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-6.12.1/fs/ext4/
Dfile.c616 err = filemap_write_and_wait_range(iocb->ki_filp->f_mapping, in ext4_dio_write_iter()
619 invalidate_mapping_pages(iocb->ki_filp->f_mapping, in ext4_dio_write_iter()
724 struct address_space *mapping = vmf->vma->vm_file->f_mapping; in ext4_dax_huge_fault()
784 struct inode *inode = file->f_mapping->host; in ext4_file_mmap()
898 struct inode *inode = file->f_mapping->host; in ext4_llseek()

12345678