summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/zfs/arc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index 5d4a52fa0..06544925b 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -5868,12 +5868,9 @@ top:
* 3. This buffer isn't currently writing to the L2ARC.
* 4. The L2ARC entry wasn't evicted, which may
* also have invalidated the vdev.
- * 5. This isn't prefetch or l2arc_noprefetch is 0.
*/
if (HDR_HAS_L2HDR(hdr) &&
- !HDR_L2_WRITING(hdr) && !HDR_L2_EVICTED(hdr) &&
- !(l2arc_noprefetch &&
- (*arc_flags & ARC_FLAG_PREFETCH))) {
+ !HDR_L2_WRITING(hdr) && !HDR_L2_EVICTED(hdr)) {
l2arc_read_callback_t *cb;
abd_t *abd;
uint64_t asize;