We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db333d commit b537bf4Copy full SHA for b537bf4
drivers/xen/balloon.c
@@ -59,6 +59,7 @@
59
#include <linux/slab.h>
60
#include <linux/sysctl.h>
61
#include <linux/moduleparam.h>
62
+#include <linux/jiffies.h>
63
64
#include <asm/page.h>
65
#include <asm/tlb.h>
@@ -794,7 +795,7 @@ static int __init balloon_wait_finish(void)
794
795
if (balloon_state == BP_ECANCELED) {
796
pr_warn_once("Initial ballooning failed, %ld pages need to be freed.\n",
797
-credit);
- if (jiffies - last_changed >= HZ * balloon_boot_timeout)
798
+ if (time_is_before_eq_jiffies(last_changed + HZ * balloon_boot_timeout))
799
panic("Initial ballooning failed!\n");
800
}
801
0 commit comments