mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Prefer VERIFY0(n) over VERIFY3S(n, ==, 0)
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
5c7df3bcac
commit
611b95da18
@@ -243,7 +243,7 @@ dsl_bookmark_create_check_impl(dsl_pool_t *dp,
|
||||
/* error is retval of the following if-cascade */
|
||||
if (strchr(source, '@') != NULL) {
|
||||
dsl_dataset_t *source_snap_ds;
|
||||
ASSERT3S(snapshot_namecheck(source, NULL, NULL), ==, 0);
|
||||
ASSERT0(snapshot_namecheck(source, NULL, NULL));
|
||||
error = dsl_dataset_hold(dp, source, FTAG, &source_snap_ds);
|
||||
if (error == 0) {
|
||||
VERIFY(source_snap_ds->ds_is_snapshot);
|
||||
@@ -258,7 +258,7 @@ dsl_bookmark_create_check_impl(dsl_pool_t *dp,
|
||||
}
|
||||
} else if (strchr(source, '#') != NULL) {
|
||||
zfs_bookmark_phys_t source_phys;
|
||||
ASSERT3S(bookmark_namecheck(source, NULL, NULL), ==, 0);
|
||||
ASSERT0(bookmark_namecheck(source, NULL, NULL));
|
||||
/*
|
||||
* Source must exists and be an earlier point in newbm_ds's
|
||||
* timeline (newbm_ds's origin may be a snap of source's ds)
|
||||
|
||||
Reference in New Issue
Block a user