From: Brian Behlendorf Date: Mon, 8 Oct 2018 21:59:34 +0000 (-0700) Subject: Fix arc_release() refcount X-Git-Tag: zfs-0.7.12~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55f39a01e692d17d546ceceb00961357e0b64981;p=zfs 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 --- diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 32ac08372..a7fb2429e 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -5831,7 +5831,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);