diff options
author | Allan Jude <allanjude@freebsd.org> | 2018-02-20 00:31:14 -0500 |
---|---|---|
committer | Prakash Surya <prakash.surya@delphix.com> | 2018-03-21 08:24:04 -0700 |
commit | 9be12bd737714550277bd02b0c693db560976990 (patch) | |
tree | 56d017cbb00a7e31d87435b28372eb9ed484e80d | |
parent | 14ae03cbd0ae825189ca16e280cef1759c76f949 (diff) | |
download | illumos-joyent-9be12bd737714550277bd02b0c693db560976990.tar.gz |
9321 arc_loan_compressed_buf() can increment arc_loaned_bytes by the wrong value
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Garrett D'Amore <garrett@damore.org>
-rw-r--r-- | usr/src/uts/common/fs/zfs/arc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/fs/zfs/arc.c b/usr/src/uts/common/fs/zfs/arc.c index 46407e3aa5..344c867bb6 100644 --- a/usr/src/uts/common/fs/zfs/arc.c +++ b/usr/src/uts/common/fs/zfs/arc.c @@ -2557,7 +2557,7 @@ arc_loan_buf(spa_t *spa, boolean_t is_metadata, int size) arc_buf_t *buf = arc_alloc_buf(spa, arc_onloan_tag, is_metadata ? ARC_BUFC_METADATA : ARC_BUFC_DATA, size); - arc_loaned_bytes_update(size); + arc_loaned_bytes_update(arc_buf_size(buf)); return (buf); } @@ -2569,7 +2569,7 @@ arc_loan_compressed_buf(spa_t *spa, uint64_t psize, uint64_t lsize, arc_buf_t *buf = arc_alloc_compressed_buf(spa, arc_onloan_tag, psize, lsize, compression_type); - arc_loaned_bytes_update(psize); + arc_loaned_bytes_update(arc_buf_size(buf)); return (buf); } |