From cb543e6b5e98546a5caec29ca4b25abec98560a2 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Tue, 9 Jul 2013 10:45:30 -0400 Subject: [PATCH] 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 Signed-off-by: Brian Behlendorf Issue #1614 --- module/zfs/arc.c | 11 ----------- 1 file changed, 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); -- 2.40.0