From a8f27ec6c5f89f721f0492ed7b07437ec439d83d Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 6 Jan 2022 23:39:22 +0100 Subject: [PATCH] l2arc_write_buffers: remove redundant asserts Probably introduced inadvertently in b525630 (Native Encryption). Reviewed-by: Brian Behlendorf Reviewed-by: George Amanakis Signed-off-by: Christian Schwarz Closes #12935 --- module/zfs/arc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 6ae67c998..46d7788d6 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -9487,12 +9487,6 @@ l2arc_write_buffers(spa_t *spa, l2arc_dev_t *dev, uint64_t target_sz) continue; } - /* - * We rely on the L1 portion of the header below, so - * it's invalid for this header to have been evicted out - * of the ghost cache, prior to being written out. The - * ARC_FLAG_L2_WRITING bit ensures this won't happen. - */ ASSERT(HDR_HAS_L1HDR(hdr)); ASSERT3U(HDR_GET_PSIZE(hdr), >, 0); @@ -9516,12 +9510,6 @@ l2arc_write_buffers(spa_t *spa, l2arc_dev_t *dev, uint64_t target_sz) * ARC_FLAG_L2_WRITING bit ensures this won't happen. */ arc_hdr_set_flags(hdr, ARC_FLAG_L2_WRITING); - ASSERT(HDR_HAS_L1HDR(hdr)); - - ASSERT3U(HDR_GET_PSIZE(hdr), >, 0); - ASSERT(hdr->b_l1hdr.b_pabd != NULL || - HDR_HAS_RABD(hdr)); - ASSERT3U(arc_hdr_size(hdr), >, 0); /* * If this header has b_rabd, we can use this since it