aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/cache.c')
-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 }