Skip to content

Commit

Permalink
Fix arc_release() refcount
Browse files Browse the repository at this point in the history
Update arc_release to use arc_buf_size().  This hunk was accidentally
dropped when porting compressed send/recv, 2aa3438.

Reviewed-by: Matthew Ahrens <[email protected]>
Signed-off-by: Tom Caputi <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#8000
  • Loading branch information
behlendorf authored and tonyhutter committed Nov 2, 2018
1 parent 3ae4950 commit 9137844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9137844

Please sign in to comment.