]> git.proxmox.com Git - mirror_zfs.git/commit
Avoid updating the L2ARC device header unnecessarily
authorGeorge Amanakis <gamanakis@gmail.com>
Thu, 28 Jan 2021 17:20:03 +0000 (18:20 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 28 Jan 2021 19:39:24 +0000 (11:39 -0800)
commita1a13869654a038e8a64ae8583494b5d8af24fdd
treea7d6741290c93b2431af747ce36e706c6f84e582
parent43eaef6de817dab3e098488f8e02a11fe57944d0
Avoid updating the L2ARC device header unnecessarily

If we do not write any buffers to the cache device and the evict hand
has not advanced do not update the cache device header.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #11522
Closes #11537
module/zfs/arc.c