diff --git a/module/zfs/arc.c b/module/zfs/arc.c index b5bcd367b247..47d07fc20388 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -4320,7 +4320,7 @@ arc_evict(void) /* Evict MFU metadata. */ w = wt * (int64_t)(arc_meta >> 16) >> 16; - e = MIN((int64_t)(asize - arc_c), (int64_t)(m - w)); + e = MIN((int64_t)(asize - arc_c), (int64_t)(m - bytes - w)); bytes = arc_evict_impl(arc_mfu, ARC_BUFC_METADATA, e); total_evicted += bytes; mfum -= bytes;