]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc/cache: simplify cache_fresh_locked and cache_fresh_unlocked.
authorNeilBrown <neilb@suse.de>
Wed, 9 Sep 2009 06:32:54 +0000 (16:32 +1000)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 11 Sep 2009 21:08:54 +0000 (17:08 -0400)
commita94c32c9e7aacaabb62416d9e1e30ad5d546b811
tree2a1940cebcde4659b6eccd0f054511d2d5f28d59
parent8149dc608a3ff3de9ba41a5715a93aed132ea9e5
sunrpc/cache: simplify cache_fresh_locked and cache_fresh_unlocked.

The extra call to cache_revisit_request in cache_fresh_unlocked is not
needed, as should have been fairly clear at the time of
   commit 6d62c54f2db3e9559109f178654be8b627b57654

If there are requests to be revisited, then we can be sure that
CACHE_PENDING is set, so the second call is sufficient.

So remove the first call.
Then remove the 'new' parameter,
then remove the return value for cache_fresh_locked which is only used
to provide the value for 'new'.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/cache.c