/fs/ |
D | ioctl.c | 90 int fiemap_fill_next_extent(struct fiemap_extent_info *fieinfo, u64 logical, in fiemap_fill_next_extent() argument 94 struct fiemap_extent __user *dest = fieinfo->fi_extents_start; in fiemap_fill_next_extent() 97 if (fieinfo->fi_extents_max == 0) { in fiemap_fill_next_extent() 98 fieinfo->fi_extents_mapped++; in fiemap_fill_next_extent() 102 if (fieinfo->fi_extents_mapped >= fieinfo->fi_extents_max) in fiemap_fill_next_extent() 118 dest += fieinfo->fi_extents_mapped; in fiemap_fill_next_extent() 122 fieinfo->fi_extents_mapped++; in fiemap_fill_next_extent() 123 if (fieinfo->fi_extents_mapped == fieinfo->fi_extents_max) in fiemap_fill_next_extent() 143 int fiemap_check_flags(struct fiemap_extent_info *fieinfo, u32 fs_flags) in fiemap_check_flags() argument 147 incompat_flags = fieinfo->fi_flags & ~(FIEMAP_FLAGS_COMPAT & fs_flags); in fiemap_check_flags() [all …]
|
D | bad_inode.c | 123 struct fiemap_extent_info *fieinfo, u64 start, in bad_inode_fiemap() argument
|
/fs/ext4/ |
D | ioctl.c | 778 struct fiemap_extent_info fieinfo = { 0, }; in ext4_ioctl_get_es_cache() local 795 fieinfo.fi_flags = fiemap.fm_flags; in ext4_ioctl_get_es_cache() 796 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ext4_ioctl_get_es_cache() 797 fieinfo.fi_extents_start = ufiemap->fm_extents; in ext4_ioctl_get_es_cache() 800 !access_ok(fieinfo.fi_extents_start, in ext4_ioctl_get_es_cache() 801 fieinfo.fi_extents_max * sizeof(struct fiemap_extent))) in ext4_ioctl_get_es_cache() 804 if (fieinfo.fi_flags & FIEMAP_FLAG_SYNC) in ext4_ioctl_get_es_cache() 807 error = ext4_get_es_cache(inode, &fieinfo, fiemap.fm_start, len); in ext4_ioctl_get_es_cache() 808 fiemap.fm_flags = fieinfo.fi_flags; in ext4_ioctl_get_es_cache() 809 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ext4_ioctl_get_es_cache()
|
D | extents.c | 2171 struct fiemap_extent_info *fieinfo) in ext4_fill_fiemap_extents() argument 2297 err = fiemap_fill_next_extent(fieinfo, in ext4_fill_fiemap_extents() 2320 struct fiemap_extent_info *fieinfo) in ext4_fill_es_cache_info() argument 2347 err = fiemap_fill_next_extent(fieinfo, in ext4_fill_es_cache_info() 5068 struct fiemap_extent_info *fieinfo) in ext4_xattr_fiemap() argument 5097 error = fiemap_fill_next_extent(fieinfo, 0, physical, in ext4_xattr_fiemap() 5103 struct fiemap_extent_info *fieinfo, in _ext4_fiemap() argument 5117 error = ext4_inline_data_fiemap(inode, fieinfo, &has_inline, in _ext4_fiemap() 5124 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in _ext4_fiemap() 5128 fieinfo->fi_flags &= ~FIEMAP_FLAG_CACHE; in _ext4_fiemap() [all …]
|
D | ext4.h | 3167 struct fiemap_extent_info *fieinfo, 3289 extern int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, 3292 struct fiemap_extent_info *fieinfo,
|
D | inline.c | 1873 struct fiemap_extent_info *fieinfo, in ext4_inline_data_fiemap() argument 1908 error = fiemap_fill_next_extent(fieinfo, start, physical, in ext4_inline_data_fiemap()
|
/fs/ocfs2/ |
D | extent_map.c | 703 struct fiemap_extent_info *fieinfo, in ocfs2_fiemap_inline() argument 727 ret = fiemap_fill_next_extent(fieinfo, 0, phys, id_count, in ocfs2_fiemap_inline() 738 int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ocfs2_fiemap() argument 749 ret = fiemap_check_flags(fieinfo, OCFS2_FIEMAP_FLAGS); in ocfs2_fiemap() 766 ret = ocfs2_fiemap_inline(inode, di_bh, fieinfo, map_start); in ocfs2_fiemap() 800 ret = fiemap_fill_next_extent(fieinfo, virt_bytes, phys_bytes, in ocfs2_fiemap()
|
D | extent_map.h | 40 int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
/fs/hpfs/ |
D | file.c | 193 static int hpfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len) in hpfs_fiemap() argument 195 return generic_block_fiemap(inode, fieinfo, start, len, hpfs_get_block); in hpfs_fiemap()
|
/fs/xfs/ |
D | xfs_iops.c | 1104 struct fiemap_extent_info *fieinfo, in xfs_vn_fiemap() argument 1111 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in xfs_vn_fiemap() 1112 fieinfo->fi_flags &= ~FIEMAP_FLAG_XATTR; in xfs_vn_fiemap() 1113 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap() 1116 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap()
|
/fs/nilfs2/ |
D | inode.c | 995 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in nilfs_fiemap() argument 1008 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC); in nilfs_fiemap() 1030 fieinfo, logical, phys, size, flags); in nilfs_fiemap() 1080 fieinfo, logical, phys, size, flags); in nilfs_fiemap() 1095 fieinfo, logical, phys, size, in nilfs_fiemap()
|
D | nilfs.h | 278 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
/fs/overlayfs/ |
D | inode.c | 464 static int ovl_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ovl_fiemap() argument 476 if (fieinfo->fi_flags & FIEMAP_FLAG_SYNC) in ovl_fiemap() 479 err = realinode->i_op->fiemap(realinode, fieinfo, start, len); in ovl_fiemap()
|
/fs/f2fs/ |
D | data.c | 1635 struct fiemap_extent_info *fieinfo) in f2fs_xattr_fiemap() argument 1674 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap() 1699 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap() 1704 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in f2fs_fiemap() argument 1714 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in f2fs_fiemap() 1720 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR); in f2fs_fiemap() 1726 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in f2fs_fiemap() 1727 ret = f2fs_xattr_fiemap(inode, fieinfo); in f2fs_fiemap() 1732 ret = f2fs_inline_data_fiemap(inode, fieinfo, start, len); in f2fs_fiemap() 1767 ret = fiemap_fill_next_extent(fieinfo, logical, in f2fs_fiemap()
|
D | inline.c | 718 struct fiemap_extent_info *fieinfo, __u64 start, __u64 len) in f2fs_inline_data_fiemap() argument 756 err = fiemap_fill_next_extent(fieinfo, start, byteaddr, ilen, flags); in f2fs_inline_data_fiemap()
|
D | f2fs.h | 3246 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, 3532 struct fiemap_extent_info *fieinfo,
|
/fs/btrfs/ |
D | extent_io.c | 4493 static int emit_fiemap_extent(struct fiemap_extent_info *fieinfo, in emit_fiemap_extent() argument 4535 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_fiemap_extent() 4548 ret = fiemap_fill_next_extent(fieinfo, cache->offset, in emit_fiemap_extent() 4566 static int emit_last_fiemap_cache(struct fiemap_extent_info *fieinfo, in emit_last_fiemap_cache() argument 4574 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_last_fiemap_cache() 4582 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in extent_fiemap() argument 4728 } else if (fieinfo->fi_extents_max) { in extent_fiemap() 4771 ret = emit_fiemap_extent(fieinfo, &cache, em_start, disko, in extent_fiemap() 4781 ret = emit_last_fiemap_cache(fieinfo, &cache); in extent_fiemap()
|
D | extent_io.h | 417 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
D | inode.c | 8764 static int btrfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in btrfs_fiemap() argument 8769 ret = fiemap_check_flags(fieinfo, BTRFS_FIEMAP_FLAGS); in btrfs_fiemap() 8773 return extent_fiemap(inode, fieinfo, start, len); in btrfs_fiemap()
|
/fs/ext2/ |
D | ext2.h | 763 extern int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
D | inode.c | 863 int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ext2_fiemap() argument 866 return generic_block_fiemap(inode, fieinfo, start, len, in ext2_fiemap()
|
/fs/gfs2/ |
D | inode.c | 2029 static int gfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in gfs2_fiemap() argument 2042 ret = iomap_fiemap(inode, fieinfo, start, len, &gfs2_iomap_ops); in gfs2_fiemap()
|