@@ -2104,9 +2104,8 @@ arc_do_user_evicts(void)
21042104void
21052105arc_adjust_meta (int64_t adjustment , boolean_t may_prune )
21062106{
2107- int64_t delta , tmp = adjustment ;
2107+ int64_t delta ;
21082108
2109- /* Evict MRU+MFU meta data to ghost lists */
21102109 if (adjustment > 0 && arc_mru -> arcs_lsize [ARC_BUFC_METADATA ] > 0 ) {
21112110 delta = MIN (arc_mru -> arcs_lsize [ARC_BUFC_METADATA ], adjustment );
21122111 arc_evict (arc_mru , 0 , delta , FALSE, ARC_BUFC_METADATA );
@@ -2116,24 +2115,9 @@ arc_adjust_meta(int64_t adjustment, boolean_t may_prune)
21162115 if (adjustment > 0 && arc_mfu -> arcs_lsize [ARC_BUFC_METADATA ] > 0 ) {
21172116 delta = MIN (arc_mfu -> arcs_lsize [ARC_BUFC_METADATA ], adjustment );
21182117 arc_evict (arc_mfu , 0 , delta , FALSE, ARC_BUFC_METADATA );
2119- }
2120-
2121- /* Evict ghost MRU+MFU meta data */
2122- adjustment = tmp ;
2123-
2124- if (adjustment > 0 && arc_mru_ghost -> arcs_size > 0 ) {
2125- delta = MIN (arc_mru_ghost -> arcs_size , adjustment );
2126- arc_evict_ghost (arc_mru_ghost , 0 , delta , ARC_BUFC_METADATA );
2127- adjustment -= delta ;
2128- }
2129-
2130- if (adjustment > 0 && arc_mfu_ghost -> arcs_size > 0 ) {
2131- delta = MIN (arc_mfu_ghost -> arcs_size , adjustment );
2132- arc_evict_ghost (arc_mfu_ghost , 0 , delta , ARC_BUFC_METADATA );
21332118 adjustment -= delta ;
21342119 }
21352120
2136- /* Request the VFS release some meta data */
21372121 if (may_prune && (adjustment > 0 ) && (arc_meta_used > arc_meta_limit ))
21382122 arc_do_user_prune (zfs_arc_meta_prune );
21392123}
0 commit comments