mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
DLPX-44812 integrate EP-220 large memory scalability
This commit is contained in:
committed by
Brian Behlendorf
parent
616fa7c02b
commit
a6255b7fce
@@ -366,11 +366,12 @@ cksummer(void *arg)
|
||||
if (ZIO_CHECKSUM_EQUAL(drrw->drr_key.ddk_cksum,
|
||||
zero_cksum) ||
|
||||
!DRR_IS_DEDUP_CAPABLE(drrw->drr_checksumflags)) {
|
||||
SHA256_CTX ctx;
|
||||
SHA2_CTX ctx;
|
||||
zio_cksum_t tmpsha256;
|
||||
|
||||
zio_checksum_SHA256(buf,
|
||||
payload_size, &ctx, &tmpsha256);
|
||||
SHA2Init(SHA256, &ctx);
|
||||
SHA2Update(&ctx, buf, payload_size);
|
||||
SHA2Final(&tmpsha256, &ctx);
|
||||
|
||||
drrw->drr_key.ddk_cksum.zc_word[0] =
|
||||
BE_64(tmpsha256.zc_word[0]);
|
||||
|
||||
@@ -33,6 +33,7 @@ KERNEL_C = \
|
||||
zfs_uio.c \
|
||||
zpool_prop.c \
|
||||
zprop_common.c \
|
||||
abd.c \
|
||||
arc.c \
|
||||
blkptr.c \
|
||||
bplist.c \
|
||||
|
||||
Reference in New Issue
Block a user