Fix assertion in Persistent L2ARC

At the end of l2arc_evict() fix an assertion in the case that l2ad_hand
+ distance == l2ad_end.

Closes #16202

Signed-off-by: George Amanakis <gamanakis@gmail.com>
This commit is contained in:
George Amanakis 2024-05-18 22:50:55 +02:00
parent efbef9e6cc
commit edac0ed547
1 changed files with 1 additions and 1 deletions

View File

@ -8886,7 +8886,7 @@ out:
* assertions may be violated without functional consequences
* as the device is about to be removed.
*/
ASSERT3U(dev->l2ad_hand + distance, <, dev->l2ad_end);
ASSERT3U(dev->l2ad_hand + distance, <=, dev->l2ad_end);
if (!dev->l2ad_first)
ASSERT3U(dev->l2ad_hand, <=, dev->l2ad_evict);
}