git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
net
/
sunrpc
/
cache.c
diff --git
a/net/sunrpc/cache.c
b/net/sunrpc/cache.c
index
bb54be8
..
d508a51
100644
(file)
--- a/
net/sunrpc/cache.c
+++ b/
net/sunrpc/cache.c
@@
-38,7
+38,7
@@
void cache_init(struct cache_head *h)
time_t now = get_seconds();
h->next = NULL;
h->flags = 0;
time_t now = get_seconds();
h->next = NULL;
h->flags = 0;
- atomic_set(&h->refcnt,
0
);
+ atomic_set(&h->refcnt,
1
);
h->expiry_time = now + CACHE_NEW_EXPIRY;
h->last_refresh = now;
}
h->expiry_time = now + CACHE_NEW_EXPIRY;
h->last_refresh = now;
}
@@
-400,9
+400,10
@@
void cache_flush(void)
void cache_purge(struct cache_detail *detail)
{
void cache_purge(struct cache_detail *detail)
{
- detail->flush_time =
get_seconds()+1
;
+ detail->flush_time =
LONG_MAX
;
detail->nextcheck = get_seconds();
cache_flush();
detail->nextcheck = get_seconds();
cache_flush();
+ detail->flush_time = 1;
}
}