Lines Matching refs:bblock
80 struct badblock *bblock; in dust_remove_block() local
84 bblock = dust_rb_search(&dd->badblocklist, block); in dust_remove_block()
86 if (bblock == NULL) { in dust_remove_block()
95 rb_erase(&bblock->node, &dd->badblocklist); in dust_remove_block()
99 kfree(bblock); in dust_remove_block()
108 struct badblock *bblock; in dust_add_block() local
111 bblock = kmalloc(sizeof(*bblock), GFP_KERNEL); in dust_add_block()
112 if (bblock == NULL) { in dust_add_block()
119 bblock->bb = block; in dust_add_block()
120 bblock->wr_fail_cnt = wr_fail_cnt; in dust_add_block()
121 if (!dust_rb_insert(&dd->badblocklist, bblock)) { in dust_add_block()
127 kfree(bblock); in dust_add_block()
144 struct badblock *bblock; in dust_query_block() local
149 bblock = dust_rb_search(&dd->badblocklist, block); in dust_query_block()
150 if (bblock != NULL) in dust_query_block()