/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 | 783 struct fiemap_extent_info fieinfo = { 0, }; in ext4_ioctl_get_es_cache() local 800 fieinfo.fi_flags = fiemap.fm_flags; in ext4_ioctl_get_es_cache() 801 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ext4_ioctl_get_es_cache() 802 fieinfo.fi_extents_start = ufiemap->fm_extents; in ext4_ioctl_get_es_cache() 805 !access_ok(fieinfo.fi_extents_start, in ext4_ioctl_get_es_cache() 806 fieinfo.fi_extents_max * sizeof(struct fiemap_extent))) in ext4_ioctl_get_es_cache() 809 if (fieinfo.fi_flags & FIEMAP_FLAG_SYNC) in ext4_ioctl_get_es_cache() 812 error = ext4_get_es_cache(inode, &fieinfo, fiemap.fm_start, len); in ext4_ioctl_get_es_cache() 813 fiemap.fm_flags = fieinfo.fi_flags; in ext4_ioctl_get_es_cache() 814 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ext4_ioctl_get_es_cache()
|
D | extents.c | 2219 struct fiemap_extent_info *fieinfo) in ext4_fill_fiemap_extents() argument 2345 err = fiemap_fill_next_extent(fieinfo, in ext4_fill_fiemap_extents() 2368 struct fiemap_extent_info *fieinfo) in ext4_fill_es_cache_info() argument 2395 err = fiemap_fill_next_extent(fieinfo, in ext4_fill_es_cache_info() 5121 struct fiemap_extent_info *fieinfo) in ext4_xattr_fiemap() argument 5150 error = fiemap_fill_next_extent(fieinfo, 0, physical, in ext4_xattr_fiemap() 5156 struct fiemap_extent_info *fieinfo, in _ext4_fiemap() argument 5170 error = ext4_inline_data_fiemap(inode, fieinfo, &has_inline, in _ext4_fiemap() 5177 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in _ext4_fiemap() 5181 fieinfo->fi_flags &= ~FIEMAP_FLAG_CACHE; in _ext4_fiemap() [all …]
|
D | ext4.h | 3235 struct fiemap_extent_info *fieinfo, 3354 extern int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, 3357 struct fiemap_extent_info *fieinfo,
|
D | inline.c | 1900 struct fiemap_extent_info *fieinfo, in ext4_inline_data_fiemap() argument 1935 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 | 1114 struct fiemap_extent_info *fieinfo, in xfs_vn_fiemap() argument 1121 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in xfs_vn_fiemap() 1122 fieinfo->fi_flags &= ~FIEMAP_FLAG_XATTR; in xfs_vn_fiemap() 1123 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap() 1126 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap()
|
/fs/nilfs2/ |
D | inode.c | 1172 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in nilfs_fiemap() argument 1185 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC); in nilfs_fiemap() 1207 fieinfo, logical, phys, size, flags); in nilfs_fiemap() 1257 fieinfo, logical, phys, size, flags); in nilfs_fiemap() 1272 fieinfo, logical, phys, size, in nilfs_fiemap()
|
D | nilfs.h | 279 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
/fs/overlayfs/ |
D | inode.c | 466 static int ovl_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ovl_fiemap() argument 478 if (fieinfo->fi_flags & FIEMAP_FLAG_SYNC) in ovl_fiemap() 481 err = realinode->i_op->fiemap(realinode, fieinfo, start, len); in ovl_fiemap()
|
/fs/f2fs/ |
D | data.c | 1839 struct fiemap_extent_info *fieinfo) in f2fs_xattr_fiemap() argument 1878 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap() 1903 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap() 1927 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in f2fs_fiemap() argument 1939 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in f2fs_fiemap() 1945 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR); in f2fs_fiemap() 1951 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in f2fs_fiemap() 1952 ret = f2fs_xattr_fiemap(inode, fieinfo); in f2fs_fiemap() 1957 ret = f2fs_inline_data_fiemap(inode, fieinfo, start, len); in f2fs_fiemap() 1995 ret = fiemap_fill_next_extent(fieinfo, logical, in f2fs_fiemap()
|
D | inline.c | 759 struct fiemap_extent_info *fieinfo, __u64 start, __u64 len) in f2fs_inline_data_fiemap() argument 797 err = fiemap_fill_next_extent(fieinfo, start, byteaddr, ilen, flags); in f2fs_inline_data_fiemap()
|
D | f2fs.h | 3502 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, 3813 struct fiemap_extent_info *fieinfo,
|
/fs/btrfs/ |
D | extent_io.c | 4565 static int emit_fiemap_extent(struct fiemap_extent_info *fieinfo, in emit_fiemap_extent() argument 4607 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_fiemap_extent() 4620 ret = fiemap_fill_next_extent(fieinfo, cache->offset, in emit_fiemap_extent() 4638 static int emit_last_fiemap_cache(struct fiemap_extent_info *fieinfo, in emit_last_fiemap_cache() argument 4646 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_last_fiemap_cache() 4654 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in extent_fiemap() argument 4805 } else if (fieinfo->fi_extents_max) { in extent_fiemap() 4848 ret = emit_fiemap_extent(fieinfo, &cache, em_start, disko, in extent_fiemap() 4858 ret = emit_last_fiemap_cache(fieinfo, &cache); in extent_fiemap()
|
D | extent_io.h | 419 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
D | inode.c | 8927 static int btrfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in btrfs_fiemap() argument 8932 ret = fiemap_check_flags(fieinfo, BTRFS_FIEMAP_FLAGS); in btrfs_fiemap() 8936 return extent_fiemap(inode, fieinfo, start, len); in btrfs_fiemap()
|
/fs/ext2/ |
D | ext2.h | 752 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 | 2030 static int gfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in gfs2_fiemap() argument 2043 ret = iomap_fiemap(inode, fieinfo, start, len, &gfs2_iomap_ops); in gfs2_fiemap()
|