mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
parent
c7eb3b0d87
commit
dca9247125
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/illumos/dist/; revision=258377
@ -3332,6 +3332,7 @@ arc_release(arc_buf_t *buf, void *tag)
|
||||
if (l2hdr) {
|
||||
mutex_enter(&l2arc_buflist_mtx);
|
||||
hdr->b_l2hdr = NULL;
|
||||
list_remove(l2hdr->b_dev->l2ad_buflist, hdr);
|
||||
}
|
||||
buf_size = hdr->b_size;
|
||||
|
||||
@ -3415,7 +3416,6 @@ arc_release(arc_buf_t *buf, void *tag)
|
||||
|
||||
if (l2hdr) {
|
||||
ARCSTAT_INCR(arcstat_l2_asize, -l2hdr->b_asize);
|
||||
list_remove(l2hdr->b_dev->l2ad_buflist, hdr);
|
||||
kmem_free(l2hdr, sizeof (l2arc_buf_hdr_t));
|
||||
ARCSTAT_INCR(arcstat_l2_size, -buf_size);
|
||||
mutex_exit(&l2arc_buflist_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user