mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
Prefer VERIFY0P(n) over VERIFY(n == NULL)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #17591
This commit is contained in:
committed by
Brian Behlendorf
parent
611b95da18
commit
f7bdd84328
@@ -450,7 +450,7 @@ dsl_dataset_evict_sync(void *dbu)
|
||||
{
|
||||
dsl_dataset_t *ds = dbu;
|
||||
|
||||
ASSERT(ds->ds_owner == NULL);
|
||||
ASSERT0P(ds->ds_owner);
|
||||
|
||||
unique_remove(ds->ds_fsid_guid);
|
||||
}
|
||||
@@ -460,7 +460,7 @@ dsl_dataset_evict_async(void *dbu)
|
||||
{
|
||||
dsl_dataset_t *ds = dbu;
|
||||
|
||||
ASSERT(ds->ds_owner == NULL);
|
||||
ASSERT0P(ds->ds_owner);
|
||||
|
||||
ds->ds_dbuf = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user