Author: avg
Date: Thu Jul  2 11:01:27 2015
New Revision: 285025
URL: https://svnweb.freebsd.org/changeset/base/285025

Log:
  6033 arc_adjust() should search MFU lists for oldest buffer when adjusting 
MFU size
  
  illumos/illumos-gate@31c46cf23cd1cf4d66390a983dc5072d7d299ba2
  
  https://www.illumos.org/issues/6033
    When we're looking for the list containing oldest buffer we never actually 
look
    at the MFU lists even when we try to evict from MFU.
    looks like a copy paste error, the fix is here:
  
  Reviewed by: Saso Kiselkov <saso.kisel...@nexenta.com>
  Reviewed by: Xin Li <delp...@delphij.net>
  Reviewed by: Prakash Surya <m...@prakashsurya.com>
  Approved by: Matthew Ahrens <mahr...@delphix.com>
  Author: Alek Pinchuk <a...@nexenta.com>
  Obtained from:        illumos

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c     Thu Jul  2 10:57:34 
2015        (r285024)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c     Thu Jul  2 11:01:27 
2015        (r285025)
@@ -23,7 +23,7 @@
  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  * Copyright (c) 2011, 2014 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.
  */
 
 /*
@@ -2850,7 +2850,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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to