Skip to content

Commit a7b10a9

Browse files
alek-pbehlendorf
authored andcommitted
Illumos 6033 - arc_adjust() should search MFU lists
6033 arc_adjust() should search MFU lists for oldest buffer when adjusting MFU size Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com> Reviewed by: Xin Li <delphij@delphij.net> Reviewed by: Prakash Surya <me@prakashsurya.com> Approved by: Matthew Ahrens <mahrens@delphix.com> References: https://www.illumos.org/issues/6033 illumos/illumos-gate@31c46cf Ported-by: kernelOfTruth kerneloftruth@gmail.com Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3545
1 parent 8f34397 commit a7b10a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/arc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2880,7 +2880,7 @@ arc_adjust(void)
28802880
*/
28812881
target = arc_size - arc_c;
28822882

2883-
if (arc_adjust_type(arc_mru) == ARC_BUFC_METADATA &&
2883+
if (arc_adjust_type(arc_mfu) == ARC_BUFC_METADATA &&
28842884
arc_meta_used > arc_meta_min) {
28852885
bytes = arc_adjust_impl(arc_mfu, 0, target, ARC_BUFC_METADATA);
28862886
total_evicted += bytes;

0 commit comments

Comments
 (0)