[Devel] [PATCH] beancounter: removed faulty warning from 'get_beancounter_held_real'
Valeriy Vdovin
valeriy.vdovin at virtuozzo.com
Tue Apr 21 13:00:16 MSK 2020
https://jira.sw.ru/browse/PSBM-103215
Signed-off-by: Valeriy Vdovin <valeriy.vdovin at virtuozzo.com>
---
include/bc/beancounter.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/include/bc/beancounter.h b/include/bc/beancounter.h
index 6db175e..7e6acf6 100644
--- a/include/bc/beancounter.h
+++ b/include/bc/beancounter.h
@@ -491,13 +491,6 @@ static inline unsigned long get_beancounter_held_real(struct ubparm *ubparm,
int precharge)
{
unsigned long val = ubparm->held;
-
- /*
- * We want to catch cases where precharge might be greater
- * than held.
- */
- WARN_ON_ONCE(val < precharge);
-
return (val > precharge) ? (val - precharge) : 0;
}
--
1.8.3.1
More information about the Devel
mailing list