]> granicus.if.org Git - zfs/commitdiff
Fix arc_release() refcount
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Oct 2018 21:59:34 +0000 (14:59 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Oct 2018 17:10:26 +0000 (10:10 -0700)
Update arc_release to use arc_buf_size().  This hunk was accidentally
dropped when porting compressed send/recv, 2aa34383b.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8000

module/zfs/arc.c

index e5d88fe5d7ef69505ae9cd93e86fa77a29de647a..07612468dcb5dbaeb1f5a30273a239ed3c37b5ce 100644 (file)
@@ -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);