diff options
author | mm <mm@FreeBSD.org> | 2012-11-25 16:32:07 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-11-25 16:32:07 +0000 |
commit | 3a0bfecf052237768517963f169d0797e2978f59 (patch) | |
tree | 35856bc2042e24d142ce48d78e222231eeb62646 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c | |
parent | 081fe7e2837cd17182c14d95cfe3d9cf8b82e05d (diff) | |
download | FreeBSD-src-3a0bfecf052237768517963f169d0797e2978f59.zip FreeBSD-src-3a0bfecf052237768517963f169d0797e2978f59.tar.gz |
MFV r243013 and r243267:
Import the zio nop-write improvement from Illumos. To reduce I/O,
nop-write omits overwriting data if the checksum (cryptographically
secure) of new data matches the checksum of existing data.
It also saves space if snapshots are in use.
It currently works only on datasets with enabled compression, disabled
deduplication and sha256 checksums.
IllumOS 13887:196932ec9e6a and 13888:7204b3392a58
3236 zio nop-write
References:
https://www.illumos.org/issues/3236
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c index 510039d..73c43da 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c @@ -440,7 +440,6 @@ dsl_pool_sync(dsl_pool_t *dp, uint64_t txg) * clean up our in-memory structures accumulated while syncing: * * - move dead blocks from the pending deadlist to the on-disk deadlist - * - clean up zil records * - release hold from dsl_dataset_dirty() */ while (ds = list_remove_head(&synced_datasets)) { |