Improve code in arc_buf_remove_ref
authorYing Zhu <casualfisher@gmail.com>
Sat, 29 Jun 2013 07:03:49 +0000 (15:03 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Jul 2013 18:53:28 +0000 (11:53 -0700)
commitb4f7f105275d996fbcb6abd65760307d2153a89b
tree4f3c05d269ebd8f97b844207de648804175bd182
parent8e07b99b2f5e1e281af72e07dee87301c8872f56
Improve code in arc_buf_remove_ref

When we remove references of arc bufs in the arc_anon state we
needn't take its header's hash_lock, so postpone it to where we
really need it to avoid unnecessary invocations of function buf_hash.

Signed-off-by: Ying Zhu <casualfisher@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1557
module/zfs/arc.c