X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=include%2Fsys%2Fdmu_objset.h;h=f4247442954f3dd9936ccc4ec38c2a1c24d7da03;hb=3a17a7a99a1a6332d0999f9be68e2b8dc3933de1;hp=013b6ec342f71f7c4744b920dde594f41dfddb0e;hpb=c11a12bc3b2e5ee9a6bd74e26f1a396b6025fbd4;p=zfs.git diff --git a/include/sys/dmu_objset.h b/include/sys/dmu_objset.h index 013b6ec..f424744 100644 --- a/include/sys/dmu_objset.h +++ b/include/sys/dmu_objset.h @@ -20,6 +20,7 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. */ /* Portions Copyright 2010 Robert Milkowski */ @@ -129,6 +130,8 @@ struct objset { ((os)->os_secondary_cache == ZFS_CACHE_ALL || \ (os)->os_secondary_cache == ZFS_CACHE_METADATA) +#define DMU_OS_IS_L2COMPRESSIBLE(os) ((os)->os_compress != ZIO_COMPRESS_OFF) + /* called from zpl */ int dmu_objset_hold(const char *name, void *tag, objset_t **osp); int dmu_objset_own(const char *name, dmu_objset_type_t type,