1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Brian Behlendorf <behlendorf1@llnl.gov>
3 Date: Mon, 8 Oct 2018 14:59:34 -0700
4 Subject: [PATCH] Fix arc_release() refcount
6 Update arc_release to use arc_buf_size(). This hunk was accidentally
7 dropped when porting compressed send/recv, 2aa34383b.
9 Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
10 Signed-off-by: Tom Caputi <tcaputi@datto.com>
11 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
14 module/zfs/arc.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/module/zfs/arc.c b/module/zfs/arc.c
18 index 32ac0837..a7fb2429 100644
19 --- a/module/zfs/arc.c
20 +++ b/module/zfs/arc.c
21 @@ -5831,7 +5831,7 @@ arc_release(arc_buf_t *buf, void *tag)
23 mutex_exit(&buf->b_evict_lock);
24 (void) zfs_refcount_add_many(&arc_anon->arcs_size,
25 - HDR_GET_LSIZE(nhdr), buf);
26 + arc_buf_size(buf), buf);
28 mutex_exit(&buf->b_evict_lock);
29 ASSERT(zfs_refcount_count(&hdr->b_l1hdr.b_refcnt) == 1);