lkml.org 
[lkml]   [2009]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/6] KEYS: Add garbage collection for dead, revoked and expired keys. [ver #2]
On Tue, 4 Aug 2009, David Howells wrote:

> +void key_schedule_gc(time_t gc_at)
> +{
> + unsigned long expires;
> + time_t now = current_kernel_time().tv_sec;
> +
> + kenter("%ld", gc_at - now);
> +
> + gc_at += key_gc_delay;
> +
> + if (now >= gc_at) {

Should you be using time_after() and friends for these comparisons?


--
James Morris
<jmorris@namei.org>


\
 
 \ /
  Last update: 2009-08-05 02:33    [W:0.055 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site