/fs/ |
D | ioctl.c | 115 int fiemap_fill_next_extent(struct fiemap_extent_info *fieinfo, u64 logical, in fiemap_fill_next_extent() argument 119 struct fiemap_extent __user *dest = fieinfo->fi_extents_start; in fiemap_fill_next_extent() 122 if (fieinfo->fi_extents_max == 0) { in fiemap_fill_next_extent() 123 fieinfo->fi_extents_mapped++; in fiemap_fill_next_extent() 127 if (fieinfo->fi_extents_mapped >= fieinfo->fi_extents_max) in fiemap_fill_next_extent() 143 dest += fieinfo->fi_extents_mapped; in fiemap_fill_next_extent() 147 fieinfo->fi_extents_mapped++; in fiemap_fill_next_extent() 148 if (fieinfo->fi_extents_mapped == fieinfo->fi_extents_max) in fiemap_fill_next_extent() 167 int fiemap_prep(struct inode *inode, struct fiemap_extent_info *fieinfo, in fiemap_prep() argument 187 incompat_flags = fieinfo->fi_flags & ~supported_flags; in fiemap_prep() [all …]
|
D | bad_inode.c | 130 struct fiemap_extent_info *fieinfo, u64 start, in bad_inode_fiemap() argument
|
/fs/ocfs2/ |
D | extent_map.c | 701 struct fiemap_extent_info *fieinfo, in ocfs2_fiemap_inline() argument 725 ret = fiemap_fill_next_extent(fieinfo, 0, phys, id_count, in ocfs2_fiemap_inline() 734 int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ocfs2_fiemap() argument 745 ret = fiemap_prep(inode, fieinfo, map_start, &map_len, 0); in ocfs2_fiemap() 762 ret = ocfs2_fiemap_inline(inode, di_bh, fieinfo, map_start); in ocfs2_fiemap() 796 ret = fiemap_fill_next_extent(fieinfo, virt_bytes, phys_bytes, in ocfs2_fiemap()
|
D | extent_map.h | 38 int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
/fs/erofs/ |
D | data.c | 337 int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in erofs_fiemap() argument 342 return iomap_fiemap(inode, fieinfo, start, len, in erofs_fiemap() 348 return iomap_fiemap(inode, fieinfo, start, len, &erofs_iomap_ops); in erofs_fiemap()
|
D | internal.h | 464 int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
/fs/ext4/ |
D | ioctl.c | 1023 struct fiemap_extent_info fieinfo = { 0, }; in ext4_ioctl_get_es_cache() local 1033 fieinfo.fi_flags = fiemap.fm_flags; in ext4_ioctl_get_es_cache() 1034 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ext4_ioctl_get_es_cache() 1035 fieinfo.fi_extents_start = ufiemap->fm_extents; in ext4_ioctl_get_es_cache() 1037 error = ext4_get_es_cache(inode, &fieinfo, fiemap.fm_start, in ext4_ioctl_get_es_cache() 1039 fiemap.fm_flags = fieinfo.fi_flags; in ext4_ioctl_get_es_cache() 1040 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ext4_ioctl_get_es_cache()
|
D | extents.c | 2187 struct fiemap_extent_info *fieinfo) in ext4_fill_es_cache_info() argument 2214 err = fiemap_fill_next_extent(fieinfo, in ext4_fill_es_cache_info() 4973 int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ext4_fiemap() argument 4978 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in ext4_fiemap() 4982 fieinfo->fi_flags &= ~FIEMAP_FLAG_CACHE; in ext4_fiemap() 4994 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in ext4_fiemap() 4995 fieinfo->fi_flags &= ~FIEMAP_FLAG_XATTR; in ext4_fiemap() 4996 return iomap_fiemap(inode, fieinfo, start, len, in ext4_fiemap() 5000 return iomap_fiemap(inode, fieinfo, start, len, &ext4_iomap_report_ops); in ext4_fiemap() 5003 int ext4_get_es_cache(struct inode *inode, struct fiemap_extent_info *fieinfo, in ext4_get_es_cache() argument [all …]
|
D | ext4.h | 3712 extern int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, 3715 struct fiemap_extent_info *fieinfo,
|
/fs/xfs/ |
D | xfs_iops.c | 1071 struct fiemap_extent_info *fieinfo, in xfs_vn_fiemap() argument 1078 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in xfs_vn_fiemap() 1079 fieinfo->fi_flags &= ~FIEMAP_FLAG_XATTR; in xfs_vn_fiemap() 1080 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap() 1083 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap()
|
/fs/hpfs/ |
D | file.c | 235 static int hpfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len) in hpfs_fiemap() argument 241 ret = iomap_fiemap(inode, fieinfo, start, len, &hpfs_iomap_ops); in hpfs_fiemap()
|
/fs/btrfs/ |
D | extent_io.c | 3534 static int emit_fiemap_extent(struct fiemap_extent_info *fieinfo, in emit_fiemap_extent() argument 3576 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_fiemap_extent() 3602 static int emit_last_fiemap_cache(struct fiemap_extent_info *fieinfo, in emit_last_fiemap_cache() argument 3610 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_last_fiemap_cache() 3727 struct fiemap_extent_info *fieinfo, in fiemap_process_hole() argument 3775 if (!checked_extent_shared && fieinfo->fi_extents_max) { in fiemap_process_hole() 3788 ret = emit_fiemap_extent(fieinfo, cache, prealloc_start, in fiemap_process_hole() 3796 ret = emit_fiemap_extent(fieinfo, cache, delalloc_start, 0, in fiemap_process_hole() 3825 if (!checked_extent_shared && fieinfo->fi_extents_max) { in fiemap_process_hole() 3836 ret = emit_fiemap_extent(fieinfo, cache, prealloc_start, in fiemap_process_hole() [all …]
|
D | extent_io.h | 158 int extent_fiemap(struct btrfs_inode *inode, struct fiemap_extent_info *fieinfo,
|
/fs/nilfs2/ |
D | inode.c | 1163 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in nilfs_fiemap() argument 1176 ret = fiemap_prep(inode, fieinfo, start, &len, 0); in nilfs_fiemap() 1198 fieinfo, logical, phys, size, flags); in nilfs_fiemap() 1248 fieinfo, logical, phys, size, flags); in nilfs_fiemap() 1263 fieinfo, logical, phys, size, in nilfs_fiemap()
|
D | nilfs.h | 284 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
/fs/f2fs/ |
D | data.c | 1886 struct fiemap_extent_info *fieinfo) in f2fs_xattr_fiemap() argument 1925 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap() 1951 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap() 1977 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in f2fs_fiemap() argument 1991 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in f2fs_fiemap() 1997 ret = fiemap_prep(inode, fieinfo, start, &len, FIEMAP_FLAG_XATTR); in f2fs_fiemap() 2012 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in f2fs_fiemap() 2013 ret = f2fs_xattr_fiemap(inode, fieinfo); in f2fs_fiemap() 2018 ret = f2fs_inline_data_fiemap(inode, fieinfo, start, len); in f2fs_fiemap() 2069 ret = fiemap_fill_next_extent(fieinfo, logical, in f2fs_fiemap()
|
D | inline.c | 771 struct fiemap_extent_info *fieinfo, __u64 start, __u64 len) in f2fs_inline_data_fiemap() argument 809 err = fiemap_fill_next_extent(fieinfo, start, byteaddr, ilen, flags); in f2fs_inline_data_fiemap()
|
D | f2fs.h | 3810 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, 4137 struct fiemap_extent_info *fieinfo,
|
/fs/ntfs3/ |
D | file.c | 1235 int ntfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ntfs_fiemap() argument 1241 err = fiemap_prep(inode, fieinfo, start, &len, ~FIEMAP_FLAG_XATTR); in ntfs_fiemap() 1247 err = ni_fiemap(ni, fieinfo, start, len); in ntfs_fiemap()
|
D | ntfs_fs.h | 498 int ntfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, 555 int ni_fiemap(struct ntfs_inode *ni, struct fiemap_extent_info *fieinfo,
|
D | frecord.c | 1906 int ni_fiemap(struct ntfs_inode *ni, struct fiemap_extent_info *fieinfo, in ni_fiemap() argument 1950 fieinfo, 0, 0, in ni_fiemap() 2045 err = fiemap_fill_next_extent(fieinfo, vbo, lbo, dlen, in ni_fiemap() 2066 err = fiemap_fill_next_extent(fieinfo, vbo, lbo, bytes, flags); in ni_fiemap()
|
/fs/overlayfs/ |
D | inode.c | 568 static int ovl_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ovl_fiemap() argument 579 err = realinode->i_op->fiemap(realinode, fieinfo, start, len); in ovl_fiemap()
|
/fs/ext2/ |
D | ext2.h | 749 extern int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
D | inode.c | 859 int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ext2_fiemap() argument 866 ret = iomap_fiemap(inode, fieinfo, start, len, &ext2_iomap_ops); in ext2_fiemap()
|
/fs/gfs2/ |
D | inode.c | 2075 static int gfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in gfs2_fiemap() argument 2088 ret = iomap_fiemap(inode, fieinfo, start, len, &gfs2_iomap_ops); in gfs2_fiemap()
|