mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
Illumos #3964 L2ARC should always compress metadata buffers
3964 L2ARC should always compress metadata buffers Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> References: https://www.illumos.org/issues/3964 Ported-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1379
This commit is contained in:
committed by
Brian Behlendorf
parent
3a17a7a99a
commit
4e59f47511
+2
-1
@@ -324,7 +324,8 @@ boolean_t dbuf_is_metadata(dmu_buf_impl_t *db);
|
||||
((_db)->db_objset->os_secondary_cache == ZFS_CACHE_METADATA)))
|
||||
|
||||
#define DBUF_IS_L2COMPRESSIBLE(_db) \
|
||||
((_db)->db_objset->os_compress != ZIO_COMPRESS_OFF)
|
||||
((_db)->db_objset->os_compress != ZIO_COMPRESS_OFF || \
|
||||
(dbuf_is_metadata(_db) && zfs_mdcomp_disable == B_FALSE))
|
||||
|
||||
#ifdef ZFS_DEBUG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user