Lines Matching refs:chunk_info
72 static void init_chunk_info(ext2_filsys fs, struct chunk_info *info) in init_chunk_info()
95 static void update_chunk_stats(struct chunk_info *info, in update_chunk_stats()
114 static void scan_block_bitmap(ext2_filsys fs, struct chunk_info *info) in scan_block_bitmap()
166 static int scan_online(ext2_filsys fs, struct chunk_info *info) in scan_online()
242 static errcode_t scan_offline(ext2_filsys fs, struct chunk_info *info) in scan_offline()
253 static errcode_t dump_chunk_info(ext2_filsys fs, struct chunk_info *info, in dump_chunk_info()
330 static void collect_info(ext2_filsys fs, struct chunk_info *chunk_info, FILE *f) in collect_info() argument
337 init_chunk_info(fs, chunk_info); in collect_info()
338 if (!scan_online(fs, chunk_info)) { in collect_info()
339 init_chunk_info(fs, chunk_info); in collect_info()
340 retval = scan_offline(fs, chunk_info); in collect_info()
348 retval = dump_chunk_info(fs, chunk_info, f); in collect_info()
380 struct chunk_info chunk_info; in do_freefrag() local
396 memset(&chunk_info, 0, sizeof(chunk_info)); in do_freefrag()
401 chunk_info.chunkbytes = strtoull(optarg, &end, 0); in do_freefrag()
407 if (chunk_info.chunkbytes & in do_freefrag()
408 (chunk_info.chunkbytes - 1)) { in do_freefrag()
413 chunk_info.chunkbytes *= 1024; in do_freefrag()
435 if (chunk_info.chunkbytes && (chunk_info.chunkbytes < fs->blocksize)) { in do_freefrag()
440 collect_info(fs, &chunk_info, stdout); in do_freefrag()