mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Suppress static analyzer warning in dmu_objset_create_impl_dnstats()
ae7e700650
added an assertion to suppress
a complaint from Clang's static analyzer. Unfortunately, it missed
another way for Clang to complain about this function. This adds another
assertion to handle that.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14575
This commit is contained in:
parent
703283fabd
commit
08641d9007
@ -1128,6 +1128,7 @@ dmu_objset_create_impl_dnstats(spa_t *spa, dsl_dataset_t *ds, blkptr_t *bp,
|
||||
OBJSET_FLAG_USEROBJACCOUNTING_COMPLETE;
|
||||
}
|
||||
if (dmu_objset_projectquota_enabled(os)) {
|
||||
ASSERT3P(ds, !=, NULL);
|
||||
ds->ds_feature_activation[
|
||||
SPA_FEATURE_PROJECT_QUOTA] = (void *)B_TRUE;
|
||||
os->os_phys->os_flags |=
|
||||
|
Loading…
Reference in New Issue
Block a user