aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/arc.c
diff options
context:
space:
mode:
authorChristian Schwarz <[email protected]>2022-01-06 23:39:22 +0100
committerGitHub <[email protected]>2022-01-06 14:39:22 -0800
commita8f27ec6c5f89f721f0492ed7b07437ec439d83d (patch)
treeb8353ec9a754368bf689cd303e0872771643a3ab /module/zfs/arc.c
parentae66d3aa90f66943ca726fa2ea7e038175aab6cf (diff)
l2arc_write_buffers: remove redundant asserts
Probably introduced inadvertently in b525630 (Native Encryption). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Amanakis <[email protected]> Signed-off-by: Christian Schwarz <[email protected]> Closes #12935
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r--module/zfs/arc.c12
1 files changed, 0 insertions, 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