mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-10 20:36:21 +03:00
Simplify dnode_level_is_l2cacheable()
We should not dereference through dn_handle->dnh_dnode once we already have a dnode pointer. The result will be the same. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com> Closes #18212
This commit is contained in:
parent
ba970eb202
commit
0f9564e85b
@ -671,8 +671,7 @@ dnode_level_is_l2cacheable(blkptr_t *bp, dnode_t *dn, int64_t level)
|
||||
{
|
||||
if (dn->dn_objset->os_secondary_cache == ZFS_CACHE_ALL ||
|
||||
(dn->dn_objset->os_secondary_cache == ZFS_CACHE_METADATA &&
|
||||
(level > 0 ||
|
||||
DMU_OT_IS_METADATA(dn->dn_handle->dnh_dnode->dn_type)))) {
|
||||
(level > 0 || DMU_OT_IS_METADATA(dn->dn_type)))) {
|
||||
if (l2arc_exclude_special == 0)
|
||||
return (B_TRUE);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user