Skip to content

Commit c273d60

Browse files
committed
Revert "Evict meta data from ghost lists + l2arc headers"
This reverts commit fadd0c4 which introduced a regression in honoring the meta limit. Signed-off-by: Brian Behlendorf <[email protected]> Close #1660
1 parent bff32e0 commit c273d60

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

module/zfs/arc.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,9 +2104,8 @@ arc_do_user_evicts(void)
21042104
void
21052105
arc_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

Comments
 (0)