diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/dbuf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/dbuf.h b/include/sys/dbuf.h index 6262f012e..f3f2007d5 100644 --- a/include/sys/dbuf.h +++ b/include/sys/dbuf.h @@ -348,6 +348,12 @@ boolean_t dbuf_is_metadata(dmu_buf_impl_t *db); (dbuf_is_metadata(_db) && \ ((_db)->db_objset->os_secondary_cache == ZFS_CACHE_METADATA))) +#define DNODE_LEVEL_IS_L2CACHEABLE(_dn, _level) \ + ((_dn)->dn_objset->os_secondary_cache == ZFS_CACHE_ALL || \ + (((_level) > 0 || \ + DMU_OT_IS_METADATA((_dn)->dn_handle->dnh_dnode->dn_type)) && \ + ((_dn)->dn_objset->os_secondary_cache == ZFS_CACHE_METADATA))) + #ifdef ZFS_DEBUG /* |