From 5e8ff25644dfed600b4bdfb201ea6db003b4ad2c Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 8 Oct 2018 14:59:34 -0700 Subject: [PATCH] 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 Signed-off-by: Tom Caputi Signed-off-by: Brian Behlendorf Closes #8000 --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0