Serapheim Dimitropoulos 86b5f4c121
Livelist logic should handle dedup blkptrs
Update the logic to handle the dedup-case of consecutive
FREEs in the livelist code. The logic still ensures that
all the FREE entries are matched up with a respective
ALLOC by keeping a refcount for each FREE blkptr that we
encounter and ensuring that this refcount gets to zero
by the time we are done processing the livelist.

zdb -y no longer panics when encountering double frees

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #11480
Closes #12177
2021-06-07 13:09:07 -06:00
..
2021-04-02 18:52:15 -07:00
2021-01-26 16:12:26 -08:00
2020-09-02 09:42:12 -07:00
2020-06-10 09:24:15 -07:00
2021-04-02 18:52:15 -07:00
2021-04-02 18:52:15 -07:00
2020-06-10 09:24:15 -07:00
2020-08-20 10:30:06 -07:00