Lines Matching refs:nchunks
377 uint64_t *nextents, uint64_t *nchunks) in run_dedupe_threads() argument
404 *nchunks = 1; in run_dedupe_threads()
409 *nchunks += threads[i].dupes; in run_dedupe_threads()
415 *nchunks = nitems - *nchunks; in run_dedupe_threads()
423 uint64_t *nchunks) in dedupe_check() argument
460 return run_dedupe_threads(&file, dev_size, nextents, nchunks); in dedupe_check()
480 static void show_stat(uint64_t nextents, uint64_t nchunks) in show_stat() argument
484 printf("Extents=%lu, Unique extents=%lu\n", (unsigned long) nextents, (unsigned long) nchunks); in show_stat()
486 if (nchunks) { in show_stat()
487 ratio = (double) nextents / (double) nchunks; in show_stat()
492 perc = 1.00 - ((double) nchunks / (double) nextents); in show_stat()
498 static void iter_rb_tree(uint64_t *nextents, uint64_t *nchunks) in iter_rb_tree() argument
502 *nchunks = *nextents = 0; in iter_rb_tree()
512 (*nchunks)++; in iter_rb_tree()
537 uint64_t nextents = 0, nchunks = 0; in main() local
585 ret = dedupe_check(argv[optind], &nextents, &nchunks); in main()
589 iter_rb_tree(&nextents, &nchunks); in main()
591 show_stat(nextents, nchunks); in main()