diff options
author | Richard Yao <[email protected]> | 2013-07-09 10:45:30 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-08-01 09:48:07 -0700 |
commit | cb543e6b5e98546a5caec29ca4b25abec98560a2 (patch) | |
tree | 07680fd4368c8e1bb66cd2b78836a59c2d331dca | |
parent | 3f4058cd15545a83b4e6e50cd7e29af45b54054a (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #1614
-rw-r--r-- | module/zfs/arc.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 75ce17436..89f5fe5f0 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -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); |