aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorchaoting fan <tingchaofan@gmail.com>2013-03-28 10:19:45 -0400
committerJ. Bruce Fields <bfields@redhat.com>2013-05-21 11:02:02 -0400
commitb6040f9706c4c81cc50b50855ed70840f022bebb (patch)
tree8a7add0dba9a2412131ae1aa5cf23f9bab9d7a8b /net
parentba4e55bb67894136489b27372166416cd70b0756 (diff)
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: fanchaoting <fanchaoting@cn.fujitsu.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 80fe5c86efd1..3b3f14fc02c5 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -201,7 +201,7 @@ static int cache_make_upcall(struct cache_detail *cd, struct cache_head *h)
201 return sunrpc_cache_pipe_upcall(cd, h); 201 return sunrpc_cache_pipe_upcall(cd, h);
202} 202}
203 203
204static inline int cache_is_valid(struct cache_detail *detail, struct cache_head *h) 204static inline int cache_is_valid(struct cache_head *h)
205{ 205{
206 if (!test_bit(CACHE_VALID, &h->flags)) 206 if (!test_bit(CACHE_VALID, &h->flags))
207 return -EAGAIN; 207 return -EAGAIN;
@@ -227,7 +227,7 @@ static int try_to_negate_entry(struct cache_detail *detail, struct cache_head *h
227 int rv; 227 int rv;
228 228
229 write_lock(&detail->hash_lock); 229 write_lock(&detail->hash_lock);
230 rv = cache_is_valid(detail, h); 230 rv = cache_is_valid(h);
231 if (rv != -EAGAIN) { 231 if (rv != -EAGAIN) {
232 write_unlock(&detail->hash_lock); 232 write_unlock(&detail->hash_lock);
233 return rv; 233 return rv;
@@ -260,7 +260,7 @@ int cache_check(struct cache_detail *detail,
260 long refresh_age, age; 260 long refresh_age, age;
261 261
262 /* First decide return status as best we can */ 262 /* First decide return status as best we can */
263 rv = cache_is_valid(detail, h); 263 rv = cache_is_valid(h);
264 264
265 /* now see if we want to start an upcall */ 265 /* now see if we want to start an upcall */
266 refresh_age = (h->expiry_time - h->last_refresh); 266 refresh_age = (h->expiry_time - h->last_refresh);
@@ -293,7 +293,7 @@ int cache_check(struct cache_detail *detail,
293 * Request was not deferred; handle it as best 293 * Request was not deferred; handle it as best
294 * we can ourselves: 294 * we can ourselves:
295 */ 295 */
296 rv = cache_is_valid(detail, h); 296 rv = cache_is_valid(h);
297 if (rv == -EAGAIN) 297 if (rv == -EAGAIN)
298 rv = -ETIMEDOUT; 298 rv = -ETIMEDOUT;
299 } 299 }