mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Remove duplicate code in l2arc_evict()
l2arc_evict() performs the adjustment of the size of buffers to be written on L2ARC unnecessarily. l2arc_write_size() is called right before l2arc_evict() and performs those adjustments. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes #14828
This commit is contained in:
committed by
Brian Behlendorf
parent
cb549c7425
commit
d91778e31f
@@ -65,7 +65,7 @@ typeset VDEV_MIN_MB=$((MINVDEVSIZE * 0.30 / 1024 / 1024))
|
||||
log_must zpool create -f $TESTPOOL $TRIM_VDEV1 cache $TRIM_VDEV2
|
||||
verify_vdevs "-le" "$VDEV_MIN_MB" $TRIM_VDEV2
|
||||
|
||||
typeset fill_mb=$(( floor(2 * MINVDEVSIZE) ))
|
||||
typeset fill_mb=$(( floor(3 * MINVDEVSIZE) ))
|
||||
export DIRECTORY=/$TESTPOOL
|
||||
export NUMJOBS=1
|
||||
export FILE_SIZE=${fill_mb}
|
||||
|
||||
Reference in New Issue
Block a user