Home
last modified time | relevance | path

Searched refs:fieinfo (Results 1 – 20 of 20) sorted by relevance

/fs/
Dioctl.c88 int fiemap_fill_next_extent(struct fiemap_extent_info *fieinfo, u64 logical, in fiemap_fill_next_extent() argument
92 struct fiemap_extent __user *dest = fieinfo->fi_extents_start; in fiemap_fill_next_extent()
95 if (fieinfo->fi_extents_max == 0) { in fiemap_fill_next_extent()
96 fieinfo->fi_extents_mapped++; in fiemap_fill_next_extent()
100 if (fieinfo->fi_extents_mapped >= fieinfo->fi_extents_max) in fiemap_fill_next_extent()
116 dest += fieinfo->fi_extents_mapped; in fiemap_fill_next_extent()
120 fieinfo->fi_extents_mapped++; in fiemap_fill_next_extent()
121 if (fieinfo->fi_extents_mapped == fieinfo->fi_extents_max) in fiemap_fill_next_extent()
141 int fiemap_check_flags(struct fiemap_extent_info *fieinfo, u32 fs_flags) in fiemap_check_flags() argument
145 incompat_flags = fieinfo->fi_flags & ~(FIEMAP_FLAGS_COMPAT & fs_flags); in fiemap_check_flags()
[all …]
Dbad_inode.c123 struct fiemap_extent_info *fieinfo, u64 start, in bad_inode_fiemap() argument
/fs/ocfs2/
Dextent_map.c716 struct fiemap_extent_info *fieinfo, in ocfs2_fiemap_inline() argument
740 ret = fiemap_fill_next_extent(fieinfo, 0, phys, id_count, in ocfs2_fiemap_inline()
751 int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ocfs2_fiemap() argument
762 ret = fiemap_check_flags(fieinfo, OCFS2_FIEMAP_FLAGS); in ocfs2_fiemap()
779 ret = ocfs2_fiemap_inline(inode, di_bh, fieinfo, map_start); in ocfs2_fiemap()
813 ret = fiemap_fill_next_extent(fieinfo, virt_bytes, phys_bytes, in ocfs2_fiemap()
Dextent_map.h53 int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
/fs/hpfs/
Dfile.c193 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/
Dxfs_iops.c1083 struct fiemap_extent_info *fieinfo, in xfs_vn_fiemap() argument
1090 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in xfs_vn_fiemap()
1091 fieinfo->fi_flags &= ~FIEMAP_FLAG_XATTR; in xfs_vn_fiemap()
1092 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap()
1095 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap()
/fs/nilfs2/
Dinode.c1004 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in nilfs_fiemap() argument
1017 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC); in nilfs_fiemap()
1039 fieinfo, logical, phys, size, flags); in nilfs_fiemap()
1089 fieinfo, logical, phys, size, flags); in nilfs_fiemap()
1104 fieinfo, logical, phys, size, in nilfs_fiemap()
Dnilfs.h288 int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
/fs/f2fs/
Ddata.c1380 struct fiemap_extent_info *fieinfo) in f2fs_xattr_fiemap() argument
1419 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap()
1444 err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags); in f2fs_xattr_fiemap()
1449 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in f2fs_fiemap() argument
1459 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in f2fs_fiemap()
1465 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR); in f2fs_fiemap()
1471 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in f2fs_fiemap()
1472 ret = f2fs_xattr_fiemap(inode, fieinfo); in f2fs_fiemap()
1477 ret = f2fs_inline_data_fiemap(inode, fieinfo, start, len); in f2fs_fiemap()
1512 ret = fiemap_fill_next_extent(fieinfo, logical, in f2fs_fiemap()
Dinline.c699 struct fiemap_extent_info *fieinfo, __u64 start, __u64 len) in f2fs_inline_data_fiemap() argument
731 err = fiemap_fill_next_extent(fieinfo, start, byteaddr, ilen, flags); in f2fs_inline_data_fiemap()
Df2fs.h3179 int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
3461 struct fiemap_extent_info *fieinfo,
/fs/ext4/
Dextents.c2179 struct fiemap_extent_info *fieinfo) in ext4_fill_fiemap_extents() argument
2305 err = fiemap_fill_next_extent(fieinfo, in ext4_fill_fiemap_extents()
5135 struct fiemap_extent_info *fieinfo) in ext4_xattr_fiemap() argument
5164 error = fiemap_fill_next_extent(fieinfo, 0, physical, in ext4_xattr_fiemap()
5169 int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ext4_fiemap() argument
5178 error = ext4_inline_data_fiemap(inode, fieinfo, &has_inline, in ext4_fiemap()
5185 if (fieinfo->fi_flags & FIEMAP_FLAG_CACHE) { in ext4_fiemap()
5193 return generic_block_fiemap(inode, fieinfo, start, len, in ext4_fiemap()
5196 if (fiemap_check_flags(fieinfo, EXT4_FIEMAP_FLAGS)) in ext4_fiemap()
5199 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) { in ext4_fiemap()
[all …]
Dinline.c1850 struct fiemap_extent_info *fieinfo, in ext4_inline_data_fiemap() argument
1885 error = fiemap_fill_next_extent(fieinfo, start, physical, in ext4_inline_data_fiemap()
Dext4.h3076 struct fiemap_extent_info *fieinfo,
3193 extern int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
/fs/gfs2/
Dinode.c2005 static int gfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in gfs2_fiemap() argument
2012 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC); in gfs2_fiemap()
2032 ret = fiemap_fill_next_extent(fieinfo, start, phys, in gfs2_fiemap()
2037 ret = __generic_block_fiemap(inode, fieinfo, start, len, in gfs2_fiemap()
/fs/btrfs/
Dextent_io.c4382 static int emit_fiemap_extent(struct fiemap_extent_info *fieinfo, in emit_fiemap_extent() argument
4424 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_fiemap_extent()
4437 ret = fiemap_fill_next_extent(fieinfo, cache->offset, in emit_fiemap_extent()
4456 struct fiemap_extent_info *fieinfo, in emit_last_fiemap_cache() argument
4464 ret = fiemap_fill_next_extent(fieinfo, cache->offset, cache->phys, in emit_last_fiemap_cache()
4472 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in extent_fiemap() argument
4608 } else if (fieinfo->fi_extents_max) { in extent_fiemap()
4654 ret = emit_fiemap_extent(fieinfo, &cache, em_start, disko, in extent_fiemap()
4664 ret = emit_last_fiemap_cache(root->fs_info, fieinfo, &cache); in extent_fiemap()
Dextent_io.h419 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
Dinode.c9018 static int btrfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in btrfs_fiemap() argument
9023 ret = fiemap_check_flags(fieinfo, BTRFS_FIEMAP_FLAGS); in btrfs_fiemap()
9027 return extent_fiemap(inode, fieinfo, start, len, btrfs_get_extent_fiemap); in btrfs_fiemap()
/fs/ext2/
Dext2.h784 extern int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
Dinode.c861 int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, in ext2_fiemap() argument
864 return generic_block_fiemap(inode, fieinfo, start, len, in ext2_fiemap()