aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/arc.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2018-10-08 14:59:34 -0700
committerBrian Behlendorf <[email protected]>2018-10-09 10:10:26 -0700
commit5e8ff25644dfed600b4bdfb201ea6db003b4ad2c (patch)
treefa22a137e1151f85c2767eb5883dafb0095d15bd /module/zfs/arc.c
parentd7e4b30a672c1d7eb77dbbe2cdcf14cac102839a (diff)
Fix arc_release() refcount
Update arc_release to use arc_buf_size(). This hunk was accidentally dropped when porting compressed send/recv, 2aa34383b. Reviewed-by: Matthew Ahrens <[email protected]> Signed-off-by: Tom Caputi <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #8000
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r--module/zfs/arc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index e5d88fe5d..07612468d 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -6825,7 +6825,7 @@ arc_release(arc_buf_t *buf, void *tag)
mutex_exit(&buf->b_evict_lock);
(void) zfs_refcount_add_many(&arc_anon->arcs_size,
- HDR_GET_LSIZE(nhdr), buf);
+ arc_buf_size(buf), buf);
} else {
mutex_exit(&buf->b_evict_lock);
ASSERT(zfs_refcount_count(&hdr->b_l1hdr.b_refcnt) == 1);