Lines Matching refs:fiemap
211 struct fiemap *fiemap = (struct fiemap *)buf; in filefrag_fiemap() local
212 struct fiemap_extent *fm_ext = &fiemap->fm_extents[0]; in filefrag_fiemap()
214 int count = (sizeof(buf) - sizeof(*fiemap)) / in filefrag_fiemap()
225 memset(fiemap, 0, sizeof(struct fiemap)); in filefrag_fiemap()
235 fiemap->fm_length = ~0ULL; in filefrag_fiemap()
236 fiemap->fm_flags = flags; in filefrag_fiemap()
237 fiemap->fm_extent_count = count; in filefrag_fiemap()
238 rc = ioctl(fd, FS_IOC_FIEMAP, (unsigned long) fiemap); in filefrag_fiemap()
246 fiemap->fm_flags); in filefrag_fiemap()
253 if (fiemap->fm_mapped_extents == 0) in filefrag_fiemap()
261 for (i = 0; i < fiemap->fm_mapped_extents; i++) { in filefrag_fiemap()
284 fiemap->fm_start = (fm_ext[i - 1].fe_logical + in filefrag_fiemap()