mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
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 <[email protected]> Signed-off-by: George Amanakis <[email protected]> Closes #16202 Closes #16207
This commit is contained in:
1 parent
d0aa9dbccf
commit
8865dfbcaa
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user