Skip to content

Commit

Permalink
Illumos 6033 - arc_adjust() should search MFU lists
Browse files Browse the repository at this point in the history
6033 arc_adjust() should search MFU lists for oldest
buffer when adjusting MFU size
Reviewed by: Saso Kiselkov <[email protected]>
Reviewed by: Xin Li <[email protected]>
Reviewed by: Prakash Surya <[email protected]>
Approved by: Matthew Ahrens <[email protected]>

References:
  https://www.illumos.org/issues/6033
  illumos/illumos-gate@31c46cf

Ported-by: kernelOfTruth [email protected]
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#3545
  • Loading branch information
alek-p authored and behlendorf committed Jul 1, 2015
1 parent 8f34397 commit a7b10a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2880,7 +2880,7 @@ arc_adjust(void)
*/
target = arc_size - arc_c;

if (arc_adjust_type(arc_mru) == ARC_BUFC_METADATA &&
if (arc_adjust_type(arc_mfu) == ARC_BUFC_METADATA &&
arc_meta_used > arc_meta_min) {
bytes = arc_adjust_impl(arc_mfu, 0, target, ARC_BUFC_METADATA);
total_evicted += bytes;
Expand Down

0 comments on commit a7b10a9

Please sign in to comment.