badblocks: switch to the improved badblock handling code

This patch removes old code of badblocks_set(), badblocks_clear() and
badblocks_check(), and make them as wrappers to call _badblocks_set(),
_badblocks_clear() and _badblocks_check().

By this change now the badblock handing switch to the improved algorithm
in  _badblocks_set(), _badblocks_clear() and _badblocks_check().

This patch only contains the changes of old code deletion, new added
code for the improved algorithms are in previous patches.

Signed-off-by: Coly Li <>
Cc: Dan Williams <>
Cc: Geliang Tang <>
Cc: Hannes Reinecke <>
Cc: Jens Axboe <>
Cc: NeilBrown <>
Cc: Vishal L Verma <>
1 file changed