diff options
author | Alek Pinchuk <alek@nexenta.com> | 2015-06-30 09:44:11 -0700 |
---|---|---|
committer | Matthew Ahrens <mahrens@delphix.com> | 2015-07-01 07:45:01 -0700 |
commit | 31c46cf23cd1cf4d66390a983dc5072d7d299ba2 (patch) | |
tree | a6ce09e23a2a70a89442083d1598d21e8f92d51e /usr | |
parent | 4f990aabd6e52e37bec8b37aa7cbcd35d9a32f62 (diff) | |
download | illumos-joyent-31c46cf23cd1cf4d66390a983dc5072d7d299ba2.tar.gz |
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>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/uts/common/fs/zfs/arc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/fs/zfs/arc.c b/usr/src/uts/common/fs/zfs/arc.c index 09d2e1dd8f..a6bb022dd0 100644 --- a/usr/src/uts/common/fs/zfs/arc.c +++ b/usr/src/uts/common/fs/zfs/arc.c @@ -23,7 +23,7 @@ * Copyright (c) 2012, Joyent, Inc. All rights reserved. * Copyright (c) 2011, 2015 by Delphix. All rights reserved. * Copyright (c) 2014 by Saso Kiselkov. All rights reserved. - * Copyright 2014 Nexenta Systems, Inc. All rights reserved. + * Copyright 2015 Nexenta Systems, Inc. All rights reserved. */ /* @@ -2985,7 +2985,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; |