mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Remove few pointer dereferences in dbuf_read()
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Closes #14199
This commit is contained in:
@@ -2407,19 +2407,11 @@ dnode_spill_freed(dnode_t *dn)
|
||||
uint64_t
|
||||
dnode_block_freed(dnode_t *dn, uint64_t blkid)
|
||||
{
|
||||
void *dp = spa_get_dsl(dn->dn_objset->os_spa);
|
||||
int i;
|
||||
|
||||
if (blkid == DMU_BONUS_BLKID)
|
||||
return (FALSE);
|
||||
|
||||
/*
|
||||
* If we're in the process of opening the pool, dp will not be
|
||||
* set yet, but there shouldn't be anything dirty.
|
||||
*/
|
||||
if (dp == NULL)
|
||||
return (FALSE);
|
||||
|
||||
if (dn->dn_free_txg)
|
||||
return (TRUE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user