Lines Matching refs:start

43 	return (sizeof(*bl) + sizeof(bl->start[0]) * nr) / sizeof(u64);  in sb_blacklist_u64s()
46 int bch2_journal_seq_blacklist_add(struct bch_fs *c, u64 start, u64 end) in bch2_journal_seq_blacklist_add() argument
58 bl->start + i; in bch2_journal_seq_blacklist_add()
60 if (end < le64_to_cpu(e->start)) in bch2_journal_seq_blacklist_add()
63 if (start > le64_to_cpu(e->end)) { in bch2_journal_seq_blacklist_add()
73 start = min(start, le64_to_cpu(e->start)); in bch2_journal_seq_blacklist_add()
75 array_remove_item(bl->start, nr, i); in bch2_journal_seq_blacklist_add()
85 array_insert_item(bl->start, nr, i, ((struct journal_seq_blacklist_entry) { in bch2_journal_seq_blacklist_add()
86 .start = cpu_to_le64(start), in bch2_journal_seq_blacklist_add()
103 return cmp_int(l->start, r->start); in journal_seq_blacklist_table_cmp()
110 struct journal_seq_blacklist_table_entry search = { .start = seq }; in bch2_journal_seq_is_blacklisted()
123 BUG_ON(t->entries[idx].start > seq); in bch2_journal_seq_is_blacklisted()
150 t->entries[i].start = le64_to_cpu(bl->start[i].start); in bch2_blacklist_table_initialize()
151 t->entries[i].end = le64_to_cpu(bl->start[i].end); in bch2_blacklist_table_initialize()
173 struct journal_seq_blacklist_entry *e = bl->start + i; in bch2_sb_journal_seq_blacklist_validate()
175 if (le64_to_cpu(e->start) >= in bch2_sb_journal_seq_blacklist_validate()
178 i, le64_to_cpu(e->start), le64_to_cpu(e->end)); in bch2_sb_journal_seq_blacklist_validate()
184 le64_to_cpu(e[1].start)) { in bch2_sb_journal_seq_blacklist_validate()
186 i + 1, le64_to_cpu(e[0].end), le64_to_cpu(e[1].start)); in bch2_sb_journal_seq_blacklist_validate()
203 for (i = bl->start; i < bl->start + nr; i++) { in bch2_sb_journal_seq_blacklist_to_text()
204 if (i != bl->start) in bch2_sb_journal_seq_blacklist_to_text()
208 le64_to_cpu(i->start), in bch2_sb_journal_seq_blacklist_to_text()
229 dst = bl->start; in bch2_blacklist_entries_gc()
235 for (src = bl->start, i = t->nr == 0 ? 0 : eytzinger0_first(t->nr); in bch2_blacklist_entries_gc()
236 src < bl->start + nr; in bch2_blacklist_entries_gc()
238 BUG_ON(t->entries[i].start != le64_to_cpu(src->start)); in bch2_blacklist_entries_gc()
245 unsigned new_nr = dst - bl->start; in bch2_blacklist_entries_gc()