Lines Matching refs:fieinfo
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()
149 fieinfo->fi_flags = incompat_flags; in fiemap_check_flags()
182 struct fiemap_extent_info fieinfo = { 0, }; in ioctl_fiemap() local
202 fieinfo.fi_flags = fiemap.fm_flags; in ioctl_fiemap()
203 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ioctl_fiemap()
204 fieinfo.fi_extents_start = ufiemap->fm_extents; in ioctl_fiemap()
207 !access_ok(fieinfo.fi_extents_start, in ioctl_fiemap()
208 fieinfo.fi_extents_max * sizeof(struct fiemap_extent))) in ioctl_fiemap()
211 if (fieinfo.fi_flags & FIEMAP_FLAG_SYNC) in ioctl_fiemap()
214 error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start, len); in ioctl_fiemap()
215 fiemap.fm_flags = fieinfo.fi_flags; in ioctl_fiemap()
216 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ioctl_fiemap()
291 struct fiemap_extent_info *fieinfo, loff_t start, in __generic_block_fiemap() argument
302 ret = fiemap_check_flags(fieinfo, FIEMAP_FLAG_SYNC); in __generic_block_fiemap()
359 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
363 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
388 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
399 ret = fiemap_fill_next_extent(fieinfo, logical, in __generic_block_fiemap()
450 struct fiemap_extent_info *fieinfo, u64 start, in generic_block_fiemap() argument
455 ret = __generic_block_fiemap(inode, fieinfo, start, len, get_block); in generic_block_fiemap()