diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2015-07-02 11:44:13 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2015-07-02 11:44:13 +0000 |
commit | 1fbb9b858a49a324cae03665aeab3cc866814618 (patch) | |
tree | 38c4dd12ca69d798100aec2c372b6c765017ad5a | |
parent | ff6a50f3a0316d5956c4cb84da4dcce30282e594 (diff) | |
parent | 31c46cf23cd1cf4d66390a983dc5072d7d299ba2 (diff) | |
download | illumos-joyent-1fbb9b858a49a324cae03665aeab3cc866814618.tar.gz |
[illumos-gate merge]
commit 31c46cf23cd1cf4d66390a983dc5072d7d299ba2
6033 arc_adjust() should search MFU lists for oldest buffer when adjusting MFU size
-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 d2b584cf02..ecfa510730 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. */ /* @@ -2986,7 +2986,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; |