Fix incorrect assertions in ddt_phys_decref and ddt_sync_entry
authorYing Zhu <casualfisher@gmail.com>
Tue, 30 Apr 2013 03:15:12 +0000 (11:15 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 6 May 2013 21:10:55 +0000 (14:10 -0700)
commitee664d463189d6302877461967afe21ce9d861a0
treed0479010b1061cfda7d4821dad64338a94a81523
parent044baf009aac4935eca0f96477eb3c43e95d758a
Fix incorrect assertions in ddt_phys_decref and ddt_sync_entry

The assertions in ddt_phys_decref and ddt_sync_entry cast ddp->ddp_refcnt
from uint64_t to int64_t, with a reference count bigger than 2^63, e.g. the
reference count of zero blocks commonly available in spare files, we may
mistakenly hit these assertations, so drop the type conversions here.

Signed-off-by: Ying Zhu <casualfisher@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1436
module/zfs/ddt.c