Lines Matching refs:nr

32 static int test_delete(struct bch_fs *c, u64 nr)
73 static int test_delete_written(struct bch_fs *c, u64 nr)
108 static int test_iterate(struct bch_fs *c, u64 nr)
117 for (i = 0; i < nr; i++) {
144 BUG_ON(i != nr);
162 static int test_iterate_extents(struct bch_fs *c, u64 nr)
171 for (i = 0; i < nr; i += 8) {
200 BUG_ON(i != nr);
219 static int test_iterate_slots(struct bch_fs *c, u64 nr)
228 for (i = 0; i < nr; i++) {
256 BUG_ON(i != nr * 2);
265 if (i >= nr * 2)
278 static int test_iterate_slots_extents(struct bch_fs *c, u64 nr)
287 for (i = 0; i < nr; i += 16) {
317 BUG_ON(i != nr);
326 if (i == nr)
343 static int test_peek_end(struct bch_fs *c, u64 nr)
363 static int test_peek_end_extents(struct bch_fs *c, u64 nr)
417 static int test_extent_overwrite_front(struct bch_fs *c, u64 nr)
423 static int test_extent_overwrite_back(struct bch_fs *c, u64 nr)
429 static int test_extent_overwrite_middle(struct bch_fs *c, u64 nr)
434 static int test_extent_overwrite_all(struct bch_fs *c, u64 nr)
500 static int test_snapshots(struct bch_fs *c, u64 nr)
539 static int rand_insert(struct bch_fs *c, u64 nr)
546 for (i = 0; i < nr; i++) {
561 static int rand_insert_multi(struct bch_fs *c, u64 nr)
569 for (i = 0; i < nr; i += ARRAY_SIZE(k)) {
593 static int rand_lookup(struct bch_fs *c, u64 nr)
604 for (i = 0; i < nr; i++) {
643 static int rand_mixed(struct bch_fs *c, u64 nr)
654 for (i = 0; i < nr; i++) {
689 static int rand_delete(struct bch_fs *c, u64 nr)
695 for (i = 0; i < nr; i++) {
708 static int seq_insert(struct bch_fs *c, u64 nr)
719 if (iter.pos.offset >= nr)
726 static int seq_lookup(struct bch_fs *c, u64 nr)
735 static int seq_overwrite(struct bch_fs *c, u64 nr)
749 static int seq_delete(struct bch_fs *c, u64 nr)
761 u64 nr;
788 ret = j->fn(j->c, div64_u64(j->nr, j->nr_threads));
803 u64 nr, unsigned nr_threads)
805 struct test_job j = { .c = c, .nr = nr, .nr_threads = nr_threads };
870 prt_human_readable_u64(&nr_buf, nr);
871 prt_human_readable_u64(&per_sec_buf, div64_u64(nr * NSEC_PER_SEC, time));
875 div_u64(time * nr_threads, nr),