Fix assertion in Persistent L2ARC
At the end of l2arc_evict() fix an assertion in the case that l2ad_hand + distance == l2ad_end. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes #16202 Closes #16207
This commit is contained in:
parent
4c0fbd8d6d
commit
2eab4f7b39
|
@ -8879,7 +8879,7 @@ out:
|
||||||
* assertions may be violated without functional consequences
|
* assertions may be violated without functional consequences
|
||||||
* as the device is about to be removed.
|
* 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)
|
if (!dev->l2ad_first)
|
||||||
ASSERT3U(dev->l2ad_hand, <=, dev->l2ad_evict);
|
ASSERT3U(dev->l2ad_hand, <=, dev->l2ad_evict);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue