diff options
author | Alek Pinchuk <[email protected]> | 2015-07-01 17:18:08 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-07-01 11:09:15 -0700 |
commit | a7b10a931911d3a98a90965795daad031c6d33a2 (patch) | |
tree | d4c49d8b4f8c13a4aa370a071123924d2187f410 /module | |
parent | 8f3439733f72a0836b764427efdf524b9bf98ac4 (diff) |
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 <[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
https://github.com/illumos/illumos-gate/commit/31c46cf
Ported-by: kernelOfTruth [email protected]
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3545
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 1a4cdb441..df7845b2f 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -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; |