badblocks: badblocks_set/clear update unacked_exist
authorShaohua Li <shli@fb.com>
Thu, 20 Oct 2016 21:40:06 +0000 (14:40 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 21 Oct 2016 21:45:47 +0000 (15:45 -0600)
commitb4a1278c78bc939b3e29c3ad21ceaa636b0ca8c8
treed2cd820ba9f15c351d0fead32b08e3b698f7d4cc
parentf660f6066716b700148f60dba3461e65efff3123
badblocks: badblocks_set/clear update unacked_exist

When bandblocks_set acknowledges a range or badblocks_clear a range,
it's possible all badblocks are acknowledged. We should update
unacked_exist if this occurs.

Signed-off-by: Shaohua Li <shli@fb.com>
Reviewed-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Tested-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/badblocks.c