Lines Matching refs:badblocklist
25 struct rb_root badblocklist; member
84 bblock = dust_rb_search(&dd->badblocklist, block); in dust_remove_block()
95 rb_erase(&bblock->node, &dd->badblocklist); in dust_remove_block()
121 if (!dust_rb_insert(&dd->badblocklist, bblock)) { in dust_add_block()
149 bblock = dust_rb_search(&dd->badblocklist, block); in dust_query_block()
161 struct badblock *bblk = dust_rb_search(&dd->badblocklist, thisblock); in __dust_map_read()
187 struct badblock *bblk = dust_rb_search(&dd->badblocklist, thisblock); in __dust_map_write()
195 rb_erase(&bblk->node, &dd->badblocklist); in __dust_map_write()
268 struct rb_root badblocklist; in dust_clear_badblocks() local
273 badblocklist = dd->badblocklist; in dust_clear_badblocks()
275 dd->badblocklist = RB_ROOT; in dust_clear_badblocks()
279 if (!__dust_clear_badblocks(&badblocklist, badblock_count)) in dust_clear_badblocks()
291 struct rb_root badblocklist; in dust_list_badblocks() local
298 badblocklist = dd->badblocklist; in dust_list_badblocks()
299 for (node = rb_first(&badblocklist); node; node = rb_next(node)) { in dust_list_badblocks()
390 dd->badblocklist = RB_ROOT; in dust_ctr()
409 __dust_clear_badblocks(&dd->badblocklist, dd->badblock_count); in dust_dtr()