diff options
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r-- | net/sunrpc/cache.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 47ad2666fdf6..2a68bb3db772 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -1349,8 +1349,11 @@ static int c_show(struct seq_file *m, void *p) | |||
1349 | if (cache_check(cd, cp, NULL)) | 1349 | if (cache_check(cd, cp, NULL)) |
1350 | /* cache_check does a cache_put on failure */ | 1350 | /* cache_check does a cache_put on failure */ |
1351 | seq_printf(m, "# "); | 1351 | seq_printf(m, "# "); |
1352 | else | 1352 | else { |
1353 | if (cache_is_expired(cd, cp)) | ||
1354 | seq_printf(m, "# "); | ||
1353 | cache_put(cp, cd); | 1355 | cache_put(cp, cd); |
1356 | } | ||
1354 | 1357 | ||
1355 | return cd->cache_show(m, cd, cp); | 1358 | return cd->cache_show(m, cd, cp); |
1356 | } | 1359 | } |
@@ -1632,7 +1635,7 @@ static int create_cache_proc_entries(struct cache_detail *cd, struct net *net) | |||
1632 | 1635 | ||
1633 | void __init cache_initialize(void) | 1636 | void __init cache_initialize(void) |
1634 | { | 1637 | { |
1635 | INIT_DELAYED_WORK_DEFERRABLE(&cache_cleaner, do_cache_clean); | 1638 | INIT_DEFERRABLE_WORK(&cache_cleaner, do_cache_clean); |
1636 | } | 1639 | } |
1637 | 1640 | ||
1638 | int cache_register_net(struct cache_detail *cd, struct net *net) | 1641 | int cache_register_net(struct cache_detail *cd, struct net *net) |