From a084e7f33fa8eceeacee7514483dd4b5e2b69b10 Mon Sep 17 00:00:00 2001 From: "Theera K." Date: Thu, 19 Sep 2024 12:35:42 +0700 Subject: [PATCH] Evicting too many bytes from MFU metadata Signed-off-by: Theera K. --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;