Lines Matching refs:fiemap
209 struct fiemap *fiemap = (struct fiemap *)buf; in filefrag_fiemap() local
210 struct fiemap_extent *fm_ext = &fiemap->fm_extents[0]; in filefrag_fiemap()
212 int count = (sizeof(buf) - sizeof(*fiemap)) / in filefrag_fiemap()
223 memset(fiemap, 0, sizeof(struct fiemap)); in filefrag_fiemap()
232 fiemap->fm_length = ~0ULL; in filefrag_fiemap()
233 fiemap->fm_flags = flags; in filefrag_fiemap()
234 fiemap->fm_extent_count = count; in filefrag_fiemap()
235 rc = ioctl(fd, FS_IOC_FIEMAP, (unsigned long) fiemap); in filefrag_fiemap()
243 fiemap->fm_flags); in filefrag_fiemap()
250 if (fiemap->fm_mapped_extents == 0) in filefrag_fiemap()
258 for (i = 0; i < fiemap->fm_mapped_extents; i++) { in filefrag_fiemap()
281 fiemap->fm_start = (fm_ext[i - 1].fe_logical + in filefrag_fiemap()