Home | History | Annotate | Download | only in ext2fs

Lines Matching defs:stats

84 #define INC_STAT(map, name) map->stats.name
128 if (gettimeofday(&bitmap->stats.created,
134 bitmap->stats.type = type;
180 struct ext2_bmap_statistics *stats = &bitmap->stats;
189 if (stats->test_count) {
190 test_seq_perc = ((float)stats->test_seq /
191 stats->test_count) * 100;
192 test_back_perc = ((float)stats->test_back /
193 stats->test_count) * 100;
196 if (stats->mark_count) {
197 mark_seq_perc = ((float)stats->mark_seq /
198 stats->mark_count) * 100;
199 mark_back_perc = ((float)stats->mark_back /
200 stats->mark_count) * 100;
211 inuse -= (double) stats->created.tv_sec + \
212 (((double) stats->created.tv_usec) * 0.000001);
215 stats->type);
221 stats->copy_count, stats->resize_count);
223 stats->mark_count, stats->unmark_count);
225 stats->test_count, stats->mark_ext_count);
228 stats->unmark_ext_count, stats->test_ext_count);
230 stats->set_range_count, stats->get_range_count);
232 stats->clear_count, stats->test_seq, test_seq_perc);
235 stats->mark_seq, mark_seq_perc,
236 stats->test_back, test_back_perc);
239 stats->mark_back, mark_back_perc, inuse);
298 src->stats.copy_count++;
301 if (gettimeofday(&new_bmap->stats.created,
307 new_bmap->stats.type = src->stats.type;
449 if (arg == bitmap->stats.last_marked + 1)
450 bitmap->stats.mark_seq++;
451 if (arg < bitmap->stats.last_marked)
452 bitmap->stats.mark_back++;
453 bitmap->stats.last_marked = arg;
454 bitmap->stats.mark_count++;
516 bitmap->stats.test_count++;
517 if (arg == bitmap->stats.last_tested + 1)
518 bitmap->stats.test_seq++;
519 if (arg < bitmap->stats.last_tested)
520 bitmap->stats.test_back++;
521 bitmap->stats.last_tested = arg;