Commit b6040f97 authored by chaoting fan's avatar chaoting fan Committed by J. Bruce Fields

sunrpc: the cache_detail in cache_is_valid is unused any more

The cache_detail(*detail) in function cache_is_valid is not used any
more.
Signed-off-by: default avatarfanchaoting <fanchaoting@cn.fujitsu.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent ba4e55bb
...@@ -201,7 +201,7 @@ static int cache_make_upcall(struct cache_detail *cd, struct cache_head *h) ...@@ -201,7 +201,7 @@ static int cache_make_upcall(struct cache_detail *cd, struct cache_head *h)
return sunrpc_cache_pipe_upcall(cd, h); return sunrpc_cache_pipe_upcall(cd, h);
} }
static inline int cache_is_valid(struct cache_detail *detail, struct cache_head *h) static inline int cache_is_valid(struct cache_head *h)
{ {
if (!test_bit(CACHE_VALID, &h->flags)) if (!test_bit(CACHE_VALID, &h->flags))
return -EAGAIN; return -EAGAIN;
...@@ -227,7 +227,7 @@ static int try_to_negate_entry(struct cache_detail *detail, struct cache_head *h ...@@ -227,7 +227,7 @@ static int try_to_negate_entry(struct cache_detail *detail, struct cache_head *h
int rv; int rv;
write_lock(&detail->hash_lock); write_lock(&detail->hash_lock);
rv = cache_is_valid(detail, h); rv = cache_is_valid(h);
if (rv != -EAGAIN) { if (rv != -EAGAIN) {
write_unlock(&detail->hash_lock); write_unlock(&detail->hash_lock);
return rv; return rv;
...@@ -260,7 +260,7 @@ int cache_check(struct cache_detail *detail, ...@@ -260,7 +260,7 @@ int cache_check(struct cache_detail *detail,
long refresh_age, age; long refresh_age, age;
/* First decide return status as best we can */ /* First decide return status as best we can */
rv = cache_is_valid(detail, h); rv = cache_is_valid(h);
/* now see if we want to start an upcall */ /* now see if we want to start an upcall */
refresh_age = (h->expiry_time - h->last_refresh); refresh_age = (h->expiry_time - h->last_refresh);
...@@ -293,7 +293,7 @@ int cache_check(struct cache_detail *detail, ...@@ -293,7 +293,7 @@ int cache_check(struct cache_detail *detail,
* Request was not deferred; handle it as best * Request was not deferred; handle it as best
* we can ourselves: * we can ourselves:
*/ */
rv = cache_is_valid(detail, h); rv = cache_is_valid(h);
if (rv == -EAGAIN) if (rv == -EAGAIN)
rv = -ETIMEDOUT; rv = -ETIMEDOUT;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment