Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ddt.c
Show All 38 Lines | |||||
#include <sys/abd.h> | #include <sys/abd.h> | ||||
/* | /* | ||||
* Enable/disable prefetching of dedup-ed blocks which are going to be freed. | * Enable/disable prefetching of dedup-ed blocks which are going to be freed. | ||||
*/ | */ | ||||
int zfs_dedup_prefetch = 1; | int zfs_dedup_prefetch = 1; | ||||
SYSCTL_DECL(_vfs_zfs); | SYSCTL_DECL(_vfs_zfs); | ||||
SYSCTL_NODE(_vfs_zfs, OID_AUTO, dedup, CTLFLAG_RW, 0, "ZFS DEDUP"); | SYSCTL_NODE(_vfs_zfs, OID_AUTO, dedup, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"ZFS DEDUP"); | |||||
SYSCTL_INT(_vfs_zfs_dedup, OID_AUTO, prefetch, CTLFLAG_RWTUN, &zfs_dedup_prefetch, | SYSCTL_INT(_vfs_zfs_dedup, OID_AUTO, prefetch, CTLFLAG_RWTUN, &zfs_dedup_prefetch, | ||||
0, "Enable/disable prefetching of dedup-ed blocks which are going to be freed"); | 0, "Enable/disable prefetching of dedup-ed blocks which are going to be freed"); | ||||
static const ddt_ops_t *ddt_ops[DDT_TYPES] = { | static const ddt_ops_t *ddt_ops[DDT_TYPES] = { | ||||
&ddt_zap_ops, | &ddt_zap_ops, | ||||
}; | }; | ||||
static const char *ddt_class_name[DDT_CLASSES] = { | static const char *ddt_class_name[DDT_CLASSES] = { | ||||
▲ Show 20 Lines • Show All 1,131 Lines • Show Last 20 Lines |