From cc99f275a28c43fe450a66a7544f73c4935f7361 Mon Sep 17 00:00:00 2001 From: Don Brady Date: Wed, 5 Sep 2018 19:33:36 -0600 Subject: Pool allocation classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allocation Classes add the ability to have allocation classes in a pool that are dedicated to serving specific block categories, such as DDT data, metadata, and small file blocks. A pool can opt-in to this feature by adding a 'special' or 'dedup' top-level VDEV. Reviewed by: Pavel Zakharov Reviewed-by: Richard Laager Reviewed-by: Alek Pinchuk Reviewed-by: HÃ¥kan Johansson Reviewed-by: Andreas Dilger Reviewed-by: DHE Reviewed-by: Richard Elling Reviewed-by: Gregor Kopka Reviewed-by: Kash Pande Reviewed-by: Brian Behlendorf Reviewed-by: Matthew Ahrens Signed-off-by: Don Brady Closes #5182 --- module/zfs/dmu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/zfs/dmu.c') diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index 88b574d4a..8779eb358 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -2281,6 +2281,8 @@ dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp, zio_prop_t *zp) bzero(zp->zp_salt, ZIO_DATA_SALT_LEN); bzero(zp->zp_iv, ZIO_DATA_IV_LEN); bzero(zp->zp_mac, ZIO_DATA_MAC_LEN); + zp->zp_zpl_smallblk = DMU_OT_IS_FILE(zp->zp_type) ? + os->os_zpl_special_smallblock : 0; ASSERT3U(zp->zp_compress, !=, ZIO_COMPRESS_INHERIT); } -- cgit v1.2.3