Loading kernel/audit.c +3 −5 Original line number Diff line number Diff line Loading @@ -321,7 +321,6 @@ static inline int audit_rate_check(void) static DEFINE_SPINLOCK(lock); unsigned long flags; unsigned long now; unsigned long elapsed; int retval = 0; if (!audit_rate_limit) return 1; Loading @@ -331,8 +330,7 @@ static inline int audit_rate_check(void) retval = 1; } else { now = jiffies; elapsed = now - last_check; if (elapsed > HZ) { if (time_after(now, last_check + HZ)) { last_check = now; messages = 0; retval = 1; Loading Loading @@ -366,7 +364,7 @@ void audit_log_lost(const char *message) if (!print) { spin_lock_irqsave(&lock, flags); now = jiffies; if (now - last_msg > HZ) { if (time_after(now, last_msg + HZ)) { print = 1; last_msg = now; } Loading Loading
kernel/audit.c +3 −5 Original line number Diff line number Diff line Loading @@ -321,7 +321,6 @@ static inline int audit_rate_check(void) static DEFINE_SPINLOCK(lock); unsigned long flags; unsigned long now; unsigned long elapsed; int retval = 0; if (!audit_rate_limit) return 1; Loading @@ -331,8 +330,7 @@ static inline int audit_rate_check(void) retval = 1; } else { now = jiffies; elapsed = now - last_check; if (elapsed > HZ) { if (time_after(now, last_check + HZ)) { last_check = now; messages = 0; retval = 1; Loading Loading @@ -366,7 +364,7 @@ void audit_log_lost(const char *message) if (!print) { spin_lock_irqsave(&lock, flags); now = jiffies; if (now - last_msg > HZ) { if (time_after(now, last_msg + HZ)) { print = 1; last_msg = now; } Loading