mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-27 02:14:28 +03:00
Remove b_thawed from arc_buf_hdr_t
The code involving b_thawed appears to be dead, so lets discard it. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1614
This commit is contained in:
parent
3f4058cd15
commit
cb543e6b5e
@ -501,7 +501,6 @@ struct arc_buf_hdr {
|
||||
|
||||
kmutex_t b_freeze_lock;
|
||||
zio_cksum_t *b_freeze_cksum;
|
||||
void *b_thawed;
|
||||
|
||||
arc_buf_hdr_t *b_hash_next;
|
||||
arc_buf_t *b_buf;
|
||||
@ -1033,12 +1032,6 @@ arc_buf_thaw(arc_buf_t *buf)
|
||||
buf->b_hdr->b_freeze_cksum = NULL;
|
||||
}
|
||||
|
||||
if (zfs_flags & ZFS_DEBUG_MODIFY) {
|
||||
if (buf->b_hdr->b_thawed)
|
||||
kmem_free(buf->b_hdr->b_thawed, 1);
|
||||
buf->b_hdr->b_thawed = kmem_alloc(1, KM_SLEEP);
|
||||
}
|
||||
|
||||
mutex_exit(&buf->b_hdr->b_freeze_lock);
|
||||
}
|
||||
|
||||
@ -1564,10 +1557,6 @@ arc_hdr_destroy(arc_buf_hdr_t *hdr)
|
||||
kmem_free(hdr->b_freeze_cksum, sizeof (zio_cksum_t));
|
||||
hdr->b_freeze_cksum = NULL;
|
||||
}
|
||||
if (hdr->b_thawed) {
|
||||
kmem_free(hdr->b_thawed, 1);
|
||||
hdr->b_thawed = NULL;
|
||||
}
|
||||
|
||||
ASSERT(!list_link_active(&hdr->b_arc_node));
|
||||
ASSERT3P(hdr->b_hash_next, ==, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user